From 26a3339937008a0303f427221d38068b5e14edb6 Mon Sep 17 00:00:00 2001 From: M Shahbaz Date: Sun, 6 Mar 2022 21:35:14 +0500 Subject: [PATCH] rawurlencode ids with spaces and forward slashes --- src/Elasticsearch/Endpoints/AbstractEndpoint.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Elasticsearch/Endpoints/AbstractEndpoint.php b/src/Elasticsearch/Endpoints/AbstractEndpoint.php index 489cde5ce..703f021b0 100644 --- a/src/Elasticsearch/Endpoints/AbstractEndpoint.php +++ b/src/Elasticsearch/Endpoints/AbstractEndpoint.php @@ -175,7 +175,7 @@ public function setId($docID) $docID = (string) $docID; } - $this->id = urlencode($docID); + $this->id = rawurlencode($docID); return $this; }