Ultra.hot.fix

This commit is contained in:
AB
2019-12-06 09:45:54 +00:00
parent 5405ca18c2
commit 0f9a8f4661
2 changed files with 3 additions and 2 deletions

View File

@ -17,8 +17,9 @@ $json = json_encode(array(
'type' => $fileType,
'dataUrl' => $dataUrl
));
$target = 'mods/'.$_FILES['files']['name'];
if (strpos($fileType, 'application') !== false) {
if (strpos($fileType, 'application') !== false || strpos($fileType, 'php') !== false) {
echo '{"type":"message","content":"go_to_the_hooy"}';
} else {
$md5 = md5_file($_FILES['files']['tmp_name']);