From 7d8ca378751ec8d210fc3279f13598d1a5dfef54 Mon Sep 17 00:00:00 2001 From: "Artem A. Naumenko" Date: Tue, 7 Aug 2012 16:51:18 +0400 Subject: [PATCH] Added u modificator to URI check regexp --- main/Net/GenericUri.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main/Net/GenericUri.class.php b/main/Net/GenericUri.class.php index 3f234ca030..95eaef8e1b 100644 --- a/main/Net/GenericUri.class.php +++ b/main/Net/GenericUri.class.php @@ -778,7 +778,7 @@ public function normalize($matched) if (mb_strlen($char) == 1) { if ( !preg_match( - '/^['.$this->unreservedPartChars.']$/', + '/^['.$this->unreservedPartChars.']$/u', $char ) ) @@ -786,7 +786,7 @@ public function normalize($matched) } else { if ( preg_match( - '/^['.GenericUri::CHARS_UNRESERVED.']$/', + '/^['.GenericUri::CHARS_UNRESERVED.']$/u', rawurldecode($char) ) ) @@ -797,4 +797,4 @@ public function normalize($matched) return $char; } } -?> \ No newline at end of file +?>