diff options
| author | Igor Wiedler <igor@wiedler.ch> | 2010-09-16 22:24:49 +0200 |
|---|---|---|
| committer | Igor Wiedler <igor@wiedler.ch> | 2010-09-16 22:24:49 +0200 |
| commit | 6b5d5e1f63fc18e190afd17364701d9d690fe1a5 (patch) | |
| tree | 3c06e906d5cd48d13492cfe181431028b5bab4f5 /phpBB/download/file.php | |
| parent | d874c3237498feb7729b23ee17248981ee3faadc (diff) | |
| parent | bef108a5cc1cc80068f7066b5c18c5631b8dbc32 (diff) | |
| download | forums-6b5d5e1f63fc18e190afd17364701d9d690fe1a5.tar forums-6b5d5e1f63fc18e190afd17364701d9d690fe1a5.tar.gz forums-6b5d5e1f63fc18e190afd17364701d9d690fe1a5.tar.bz2 forums-6b5d5e1f63fc18e190afd17364701d9d690fe1a5.tar.xz forums-6b5d5e1f63fc18e190afd17364701d9d690fe1a5.zip | |
Merge branch 'ticket/bantu/9609' into develop-olympus
* ticket/bantu/9609:
[ticket/9609] Change header() calls setting HTTP status to send_status_line().
Diffstat (limited to 'phpBB/download/file.php')
| -rw-r--r-- | phpBB/download/file.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/phpBB/download/file.php b/phpBB/download/file.php index 1f2cee4d95..5f45b88359 100644 --- a/phpBB/download/file.php +++ b/phpBB/download/file.php @@ -77,7 +77,7 @@ if (isset($_GET['avatar'])) // '==' is not a bug - . as the first char is as bad as no dot at all if (strpos($filename, '.') == false) { - header('HTTP/1.0 403 Forbidden'); + send_status_line(403, 'Forbidden'); $exit = true; } @@ -91,7 +91,7 @@ if (isset($_GET['avatar'])) if (!$exit && !in_array($ext, array('png', 'gif', 'jpg', 'jpeg'))) { // no way such an avatar could exist. They are not following the rules, stop the show. - header("HTTP/1.0 403 Forbidden"); + send_status_line(403, 'Forbidden'); $exit = true; } @@ -101,7 +101,7 @@ if (isset($_GET['avatar'])) if (!$filename) { // no way such an avatar could exist. They are not following the rules, stop the show. - header("HTTP/1.0 403 Forbidden"); + send_status_line(403, 'Forbidden'); } else { @@ -199,7 +199,7 @@ else $row['forum_id'] = false; if (!$auth->acl_get('u_pm_download')) { - header('HTTP/1.0 403 Forbidden'); + send_status_line(403, 'Forbidden'); trigger_error('SORRY_AUTH_VIEW_ATTACH'); } @@ -222,7 +222,7 @@ else if (!$allowed) { - header('HTTP/1.0 403 Forbidden'); + send_status_line(403, 'Forbidden'); trigger_error('ERROR_NO_ATTACHMENT'); } } @@ -237,7 +237,7 @@ else if (!download_allowed()) { - header('HTTP/1.0 403 Forbidden'); + send_status_line(403, 'Forbidden'); trigger_error($user->lang['LINKAGE_FORBIDDEN']); } @@ -383,7 +383,7 @@ function send_avatar_to_browser($file, $browser) } else { - header('HTTP/1.0 404 Not Found'); + send_status_line(404, 'Not Found'); } } |
