diff options
author | Oleg Pudeyev <oleg@bsdpower.com> | 2010-05-17 14:14:53 -0400 |
---|---|---|
committer | Oleg Pudeyev <oleg@bsdpower.com> | 2010-05-17 14:14:53 -0400 |
commit | c185e45e09032e3ac32149a91f0133deb425acaa (patch) | |
tree | 0f904d2c7ec410fc8fb92cc83b5ecc90b47e2f92 /phpBB/includes/functions.php | |
parent | d721e94b888b657c8e36729db2c455812308cdc3 (diff) | |
download | forums-c185e45e09032e3ac32149a91f0133deb425acaa.tar forums-c185e45e09032e3ac32149a91f0133deb425acaa.tar.gz forums-c185e45e09032e3ac32149a91f0133deb425acaa.tar.bz2 forums-c185e45e09032e3ac32149a91f0133deb425acaa.tar.xz forums-c185e45e09032e3ac32149a91f0133deb425acaa.zip |
[ticket/7782] Return 404 HTTP status code for nonexistent attachments.
PHPBB3-7782
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r-- | phpBB/includes/functions.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 862ab3b367..3e80f93114 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -3662,7 +3662,7 @@ function msg_handler($errno, $msg_text, $errfile, $errline) $user->setup(); } - if ($msg_text == 'NO_FORUM' || $msg_text == 'NO_TOPIC' || $msg_text == 'NO_USER') + if ($msg_text == 'ERROR_NO_ATTACHMENT' || $msg_text == 'NO_FORUM' || $msg_text == 'NO_TOPIC' || $msg_text == 'NO_USER') { send_status_line(404, 'Not Found'); } |