aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorMate Bartus <mate.bartus@gmail.com>2015-10-18 11:26:41 +0200
committerMate Bartus <mate.bartus@gmail.com>2015-10-18 11:26:41 +0200
commit100bb8f27c52b2faffddf2a6926c5d7b49faa421 (patch)
treee56bfbcca249d1b83c5ab6aa3799c39d267616c1 /phpBB
parentafe91fa7d3af0d30389c49428b30c9aeb0fe0916 (diff)
downloadforums-100bb8f27c52b2faffddf2a6926c5d7b49faa421.tar
forums-100bb8f27c52b2faffddf2a6926c5d7b49faa421.tar.gz
forums-100bb8f27c52b2faffddf2a6926c5d7b49faa421.tar.bz2
forums-100bb8f27c52b2faffddf2a6926c5d7b49faa421.tar.xz
forums-100bb8f27c52b2faffddf2a6926c5d7b49faa421.zip
[ticket/14039] Use http_exception instead of die()
PHPBB3-14039
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/phpbb/install/controller/archive_download.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/phpBB/phpbb/install/controller/archive_download.php b/phpBB/phpbb/install/controller/archive_download.php
index e1f7634963..a0f0ba181d 100644
--- a/phpBB/phpbb/install/controller/archive_download.php
+++ b/phpBB/phpbb/install/controller/archive_download.php
@@ -13,6 +13,7 @@
namespace phpbb\install\controller;
+use phpbb\exception\http_exception;
use phpbb\install\helper\config;
use Symfony\Component\HttpFoundation\BinaryFileResponse;
use Symfony\Component\HttpFoundation\ResponseHeaderBag;
@@ -49,7 +50,7 @@ class archive_download
if (!$filename)
{
- die ('The requested file is not exist.');
+ throw new http_exception(404, 'URL_NOT_FOUND');
}
return $this->send_response($filename);
@@ -66,7 +67,7 @@ class archive_download
if (!$filename)
{
- die ('The requested file is not exist.');
+ throw new http_exception(404, 'URL_NOT_FOUND');
}
return $this->send_response($filename);