diff options
author | Florian Pritz <bluewind@xinu.at> | 2015-02-03 00:23:12 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2015-02-03 00:23:12 +0100 |
commit | cb52a4cdc2daa45a61c728f5ec83603e6c6a71fa (patch) | |
tree | 0470c7a3d39c41f6b2b87af8fc8700ad849e14cf /index.php | |
parent | 33efe571e3e7ebd607e92345c2e94e7fd8ae27f0 (diff) |
Rework error handling in upload validator
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -299,7 +299,11 @@ register_shutdown_function("check_for_fatal"); * And away we go... * */ -require_once BASEPATH.'core/CodeIgniter.php'; +try { + require_once BASEPATH.'core/CodeIgniter.php'; +} catch (\exceptions\UserInputException $e) { + show_error(nl2br(htmlspecialchars($e->__toString())), 400); +} /* End of file index.php */ /* Location: ./index.php */ |