Skip to content

Commit

Permalink
add empty string check
Browse files Browse the repository at this point in the history
Co-authored-by: kenjis <[email protected]>
  • Loading branch information
samsonasik and kenjis authored Oct 16, 2023
1 parent 3803fbc commit faa0c99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/HTTP/URI.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public static function createURIString(
: ltrim($path, '/');
}

if ($query !== null) {
if ($query !== '' && $query !== null) {
$uri .= '?' . $query;
}

Expand Down

0 comments on commit faa0c99

Please sign in to comment.