Skip to content

Commit cb95856

Browse files
committed
Patch double-decode issue with query string
1 parent 618e661 commit cb95856

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Server/Data.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ public function processData(?string $contentType = null, ?string $encoding = nul
370370

371371
// Process query string
372372
if (isset($_SERVER['QUERY_STRING'])) {
373-
$this->queryData = rawurldecode($_SERVER['QUERY_STRING']);
373+
$this->queryData = $_SERVER['QUERY_STRING'];
374374
$this->queryData = (($contentType !== null) && ((stripos($contentType, 'json') !== false) || (stripos($contentType, 'xml') !== false))) ?
375375
Parser::parseDataByContentType($this->queryData, $contentType, $encoding) :
376376
Parser::parseDataByContentType($this->queryData, 'application/x-www-form-urlencoded', $encoding);

0 commit comments

Comments
 (0)