* fix bug.

This commit is contained in:
z
2020-11-24 16:32:32 +08:00
parent f83da3686b
commit 41716c9d15

View File

@@ -12,7 +12,7 @@ public function downloadZipPackage($version, $link)
$decodeLink = helper::safe64Decode($link);
if(!preg_match('/^https?\:\/\//', $decodeLink)) return false;
$file = basename($link);
$file = basename($decodeLink);
$extension = substr($file, strrpos($file, '.') + 1);
if(strpos(",{$this->config->file->allowed},", ",{$extension},") === false) return false;