1
0
mirror of https://github.com/nokonoko/Uguu.git synced 2024-01-06 13:35:15 +00:00

change desc

This commit is contained in:
nokonoko 2020-11-18 14:15:44 +01:00
parent 36cfd3b8e8
commit 180e80182f
2 changed files with 3 additions and 3 deletions

View File

@ -131,7 +131,7 @@ document.addEventListener('DOMContentLoaded', function() {
link.textContent = 'File too big!'; link.textContent = 'File too big!';
url.appendChild(link); url.appendChild(link);
} else { } else {
link.textContent = 'Server error!'; link.textContent = 'Filetype not allowed or server error!';
url.appendChild(link); url.appendChild(link);
} }
} }

View File

@ -56,13 +56,13 @@ function generateName($file)
//Check if mime is blacklisted //Check if mime is blacklisted
if (in_array($type_mime, unserialize(CONFIG_BLOCKED_MIME))) { if (in_array($type_mime, unserialize(CONFIG_BLOCKED_MIME))) {
throw new Exception('Extension type not allowed.'); throw new Exception('Filetype not allowed!');
exit(0); exit(0);
} }
//Check if EXT is blacklisted //Check if EXT is blacklisted
if (in_array($ext, unserialize(CONFIG_BLOCKED_EXTENSIONS))) { if (in_array($ext, unserialize(CONFIG_BLOCKED_EXTENSIONS))) {
throw new Exception('Extension type not allowed.'); throw new Exception('Filetype not allowed!');
exit(0); exit(0);
} }