mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-11 05:48:51 +00:00
Forbidden should have an uppercase F
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8459 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
33f4d78d2e
commit
d182a88b68
1 changed files with 6 additions and 6 deletions
|
@ -48,7 +48,7 @@ if (isset($_GET['avatar']))
|
||||||
// '==' is not a bug - . as the first char is as bad as no dot at all
|
// '==' is not a bug - . as the first char is as bad as no dot at all
|
||||||
if (strpos($filename, '.') == false)
|
if (strpos($filename, '.') == false)
|
||||||
{
|
{
|
||||||
header('HTTP/1.0 403 forbidden');
|
header('HTTP/1.0 403 Forbidden');
|
||||||
if (!empty($cache))
|
if (!empty($cache))
|
||||||
{
|
{
|
||||||
$cache->unload();
|
$cache->unload();
|
||||||
|
@ -89,7 +89,7 @@ if (isset($_GET['avatar']))
|
||||||
if (!in_array($ext, array('png', 'gif', 'jpg', 'jpeg')))
|
if (!in_array($ext, array('png', 'gif', 'jpg', 'jpeg')))
|
||||||
{
|
{
|
||||||
// no way such an avatar could exist. They are not following the rules, stop the show.
|
// no way such an avatar could exist. They are not following the rules, stop the show.
|
||||||
header("HTTP/1.0 403 forbidden");
|
header("HTTP/1.0 403 Forbidden");
|
||||||
if (!empty($cache))
|
if (!empty($cache))
|
||||||
{
|
{
|
||||||
$cache->unload();
|
$cache->unload();
|
||||||
|
@ -101,7 +101,7 @@ if (isset($_GET['avatar']))
|
||||||
if (!$filename)
|
if (!$filename)
|
||||||
{
|
{
|
||||||
// no way such an avatar could exist. They are not following the rules, stop the show.
|
// no way such an avatar could exist. They are not following the rules, stop the show.
|
||||||
header("HTTP/1.0 403 forbidden");
|
header("HTTP/1.0 403 Forbidden");
|
||||||
if (!empty($cache))
|
if (!empty($cache))
|
||||||
{
|
{
|
||||||
$cache->unload();
|
$cache->unload();
|
||||||
|
@ -208,7 +208,7 @@ else
|
||||||
$row['forum_id'] = false;
|
$row['forum_id'] = false;
|
||||||
if (!$auth->acl_get('u_pm_download'))
|
if (!$auth->acl_get('u_pm_download'))
|
||||||
{
|
{
|
||||||
header('HTTP/1.0 403 forbidden');
|
header('HTTP/1.0 403 Forbidden');
|
||||||
trigger_error('SORRY_AUTH_VIEW_ATTACH');
|
trigger_error('SORRY_AUTH_VIEW_ATTACH');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -231,7 +231,7 @@ else
|
||||||
|
|
||||||
if (!$allowed)
|
if (!$allowed)
|
||||||
{
|
{
|
||||||
header('HTTP/1.0 403 forbidden');
|
header('HTTP/1.0 403 Forbidden');
|
||||||
trigger_error('ERROR_NO_ATTACHMENT');
|
trigger_error('ERROR_NO_ATTACHMENT');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -246,7 +246,7 @@ else
|
||||||
|
|
||||||
if (!download_allowed())
|
if (!download_allowed())
|
||||||
{
|
{
|
||||||
header('HTTP/1.0 403 forbidden');
|
header('HTTP/1.0 403 Forbidden');
|
||||||
trigger_error($user->lang['LINKAGE_FORBIDDEN']);
|
trigger_error($user->lang['LINKAGE_FORBIDDEN']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue