Skip to content

Commit 4dbda0b

Browse files
committed
Merge pull request #123 from ents/GenericUriUnicode
Added u modificator to URI check regexp
1 parent 34a3e07 commit 4dbda0b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

main/Net/GenericUri.class.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -778,15 +778,15 @@ public function normalize($matched)
778778
if (mb_strlen($char) == 1) {
779779
if (
780780
!preg_match(
781-
'/^['.$this->unreservedPartChars.']$/',
781+
'/^['.$this->unreservedPartChars.']$/u',
782782
$char
783783
)
784784
)
785785
$char = rawurlencode($char);
786786
} else {
787787
if (
788788
preg_match(
789-
'/^['.GenericUri::CHARS_UNRESERVED.']$/',
789+
'/^['.GenericUri::CHARS_UNRESERVED.']$/u',
790790
rawurldecode($char)
791791
)
792792
)
@@ -797,4 +797,4 @@ public function normalize($matched)
797797
return $char;
798798
}
799799
}
800-
?>
800+
?>

0 commit comments

Comments
 (0)