Skip to content

Commit

Permalink
rawurlencode ids with spaces and forward slashes
Browse files Browse the repository at this point in the history
  • Loading branch information
M-Shahbaz authored Mar 6, 2022
1 parent da42727 commit 26a3339
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Elasticsearch/Endpoints/AbstractEndpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public function setId($docID)
$docID = (string) $docID;
}

$this->id = urlencode($docID);
$this->id = rawurlencode($docID);

return $this;
}
Expand Down

0 comments on commit 26a3339

Please sign in to comment.