Fix parsing paths with Cyrillic characters

This commit is contained in:
Zach Borboa
2021-08-07 17:52:34 -04:00
parent eadd466f66
commit 8bc9d6dd71
+5 -1
View File
@@ -180,7 +180,11 @@ class Url
*/
public static function parseUrl($url)
{
return parse_url((string) $url);
$parts = parse_url((string) $url);
if (isset($parts['path'])) {
$parts['path'] = self::percentEncodeChars($parts['path']);
}
return $parts;
}
/**