Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 20bfa8f

Browse files
committed
Add support for UTF-8 query string
1 parent e9c1c07 commit 20bfa8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Uri.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ private function filterFragment($fragment)
645645
private function filterQueryOrFragment($value)
646646
{
647647
return preg_replace_callback(
648-
'/(?:[^' . self::CHAR_UNRESERVED . self::CHAR_SUB_DELIMS . '%:@\/\?]+|%(?![A-Fa-f0-9]{2}))/',
648+
'/(?:[^' . self::CHAR_UNRESERVED . self::CHAR_SUB_DELIMS . '%:@\/\?]+|%(?![A-Fa-f0-9]{2}))/u',
649649
[$this, 'urlEncodeChar'],
650650
$value
651651
);

0 commit comments

Comments
 (0)