From 266b35775291d6542327dba499b71ca91a629b8a Mon Sep 17 00:00:00 2001 From: AL BOROM WARD <3279308836@qq.com> Date: Wed, 8 Dec 2021 17:11:10 +0800 Subject: [PATCH] Fixed typoo erroe fixed the typoo error mentioned by teacher --- Script.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Script.php b/Script.php index 553ab63..935bac0 100644 --- a/Script.php +++ b/Script.php @@ -301,7 +301,7 @@ function is_valid_file_format($file) 'cvc', 'c', 'class', 'cpp', 'h', 'java', 'sh', 'swift', 'zip', 'rar', 'ods', 'xlr', 'bak', 'ico', 'swf' ); - utf8_encode($filename = $_FILES[$file]['name']); + $filename = utf8_encode($_FILES[$file]['name']); $ext = pathinfo($filename, PATHINFO_EXTENSION); $result = in_array($ext, $allowed); return $result;