fixed unreadable filename

This commit is contained in:
huangjx
2022-02-26 20:51:52 +08:00
parent f25d41b5f5
commit e8d1b9e263

View File

@@ -55,7 +55,7 @@ class Helper
public static function getUrlPath($url) public static function getUrlPath($url)
{ {
$path = parse_url($url, PHP_URL_PATH); $path = parse_url($url, PHP_URL_PATH);
$filename = self::cleanString(basename($path)); $filename = self::cleanString(urldecode(basename($path)));
return self::clipFilename($filename); return self::clipFilename($filename);
} }
public static function clipFilename($filename) public static function clipFilename($filename)