mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-08-31 04:34:27 +00:00
Fix parsing paths with Cyrillic characters
This commit is contained in:
+5
-1
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user