Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix splitQueryPart() #2497

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Empty fix
  • Loading branch information
MashinaMashina committed Jan 17, 2020
commit 4bf27d85698c28813958d80f91483e07a8a9877d
10 changes: 3 additions & 7 deletions system/HTTP/URI.php
Original file line number Diff line number Diff line change
Expand Up @@ -754,14 +754,10 @@ public function setQuery(string $query)

foreach ($temp as $index => $part)
{
list($key, $value) = $this->splitQueryPart($part);

// Only 1 part?
if (is_null($value))
{
$parts[$key] = null;
if ($part === '')
continue;
}

list($key, $value) = $this->splitQueryPart($part);

// URL Decode the value to protect
// from double-encoding a URL.
Expand Down