forked from gitbot/uguu
change desc
This commit is contained in:
parent
36cfd3b8e8
commit
180e80182f
@ -131,7 +131,7 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||
link.textContent = 'File too big!';
|
||||
url.appendChild(link);
|
||||
} else {
|
||||
link.textContent = 'Server error!';
|
||||
link.textContent = 'Filetype not allowed or server error!';
|
||||
url.appendChild(link);
|
||||
}
|
||||
}
|
||||
|
@ -56,13 +56,13 @@ function generateName($file)
|
||||
|
||||
//Check if mime is blacklisted
|
||||
if (in_array($type_mime, unserialize(CONFIG_BLOCKED_MIME))) {
|
||||
throw new Exception('Extension type not allowed.');
|
||||
throw new Exception('Filetype not allowed!');
|
||||
exit(0);
|
||||
}
|
||||
|
||||
//Check if EXT is blacklisted
|
||||
if (in_array($ext, unserialize(CONFIG_BLOCKED_EXTENSIONS))) {
|
||||
throw new Exception('Extension type not allowed.');
|
||||
throw new Exception('Filetype not allowed!');
|
||||
exit(0);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user