Skip to content

Commit faa0c99

Browse files
samsonasikkenjis
andauthored
add empty string check
Co-authored-by: kenjis <kenji.uui@gmail.com>
1 parent 3803fbc commit faa0c99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/HTTP/URI.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ public static function createURIString(
177177
: ltrim($path, '/');
178178
}
179179

180-
if ($query !== null) {
180+
if ($query !== '' && $query !== null) {
181181
$uri .= '?' . $query;
182182
}
183183

0 commit comments

Comments
 (0)