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

Commit c6fe65b

Browse files
committed
using )( same as suggested at zendframework/zend-diactoros#258 (comment)
1 parent 2cb5e12 commit c6fe65b

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
@@ -1007,7 +1007,7 @@ public static function encodePath($path)
10071007
));
10081008
}
10091009

1010-
$regex = '/(?:[^(' . self::CHAR_UNRESERVED . '):@&=\+\$,\/;%]+|%(?![A-Fa-f0-9]{2}))/';
1010+
$regex = '/(?:[^' . self::CHAR_UNRESERVED . ')(:@&=\+\$,\/;%]+|%(?![A-Fa-f0-9]{2}))/';
10111011
$escaper = static::getEscaper();
10121012
$replace = function ($match) use ($escaper) {
10131013
return $escaper->escapeUrl($match[0]);

0 commit comments

Comments
 (0)