Check mbstring
This commit is contained in:
@ -18,6 +18,12 @@ $file = $_FILES["file"];
|
||||
|
||||
$name = basename($file["name"]);
|
||||
|
||||
|
||||
if (! extension_loaded('mbstring')) {
|
||||
header("HTTP/1.1 400 Bad encode");
|
||||
exit();
|
||||
}
|
||||
|
||||
if(! mb_check_encoding($name)) {
|
||||
header("HTTP/1.1 400 Bad encode");
|
||||
exit();
|
||||
|
Reference in New Issue
Block a user