Skip to content

Commit 3f2c84c

Browse files
committed
Add square brackets [] to list of special characters that are not escaped
1 parent 471b2d3 commit 3f2c84c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/mb-parse-url.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
function mb_parse_url($url, $component = -1)
1919
{
2020
$enc_url = preg_replace_callback(
21-
'%[^:/@?&=#]+%usD',
21+
'%[^:/@?&=#\[\]]+%usD',
2222
function ($matches) {
2323
return urlencode($matches[0]);
2424
},

0 commit comments

Comments
 (0)