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

Commit c0a4f5c

Browse files
committed
Dismbiguates purpose of parens in PCRE character group
1 parent 0ef9893 commit c0a4f5c

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
@@ -556,7 +556,7 @@ private function filterScheme($scheme)
556556
private function filterPath($path)
557557
{
558558
$path = preg_replace_callback(
559-
'/(?:[^(' . self::CHAR_UNRESERVED . '):@&=\+\$,\/;%]+|%(?![A-Fa-f0-9]{2}))/u',
559+
'/(?:[^' . self::CHAR_UNRESERVED . ')(:@&=\+\$,\/;%]+|%(?![A-Fa-f0-9]{2}))/u',
560560
[$this, 'urlEncodeChar'],
561561
$path
562562
);

0 commit comments

Comments
 (0)