Skip to content

Commit e7dc9f7

Browse files
committed
Prevent URL fragment destructing
1 parent cd22b0c commit e7dc9f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Curl/Url.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ private function parseUrl($url)
160160
$unreserved = $alpha . $digit . preg_quote('-._~');
161161

162162
// sub-delims = "!" / "$" / "&" / "'" / "(" / ")"
163-
// / "*" / "+" / "," / ";" / "="
164-
$sub_delims = preg_quote('!$&\'()*+,;=');
163+
// / "*" / "+" / "," / ";" / "=" / "#"
164+
$sub_delims = preg_quote('!$&\'()*+,;=#');
165165

166166
// HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"
167167
$hexdig = $digit . 'A-F';

0 commit comments

Comments
 (0)