Handle & show upload_max_filesize occurences (#1241)

This commit is contained in:
Cønstantine Kovalensky 2023-12-20 22:47:32 +04:00 committed by GitHub
commit 0525597a15
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 19 additions and 6 deletions

View file

@ -30,7 +30,7 @@ if (!file_exists($filename) || !$file_contents = file_get_contents($filename)) {
try {
$tor = \Arokettu\Bencode\Bencode::decode($file_contents, dictType: \Arokettu\Bencode\Bencode\Collection::ARRAY);
} catch (Exception) {
} catch (\Exception) {
$this->response['html'] = $lang['TORFILE_INVALID'];
return;
}