aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Senko <jakubsenko@gmail.com>2014-09-17 11:56:37 +0200
committerJakub Senko <jakubsenko@gmail.com>2014-09-17 11:56:37 +0200
commitea5e46f6dd080f0f3bc70b560f2d202f38e709b9 (patch)
tree52f281c37a4ef9e67e506bdd1f7207f1b54c3ea5 /phpBB/includes/functions_download.php
parent[ticket/13044] move GMT string out of gmdate() (diff)
downloadphpbb-ea5e46f6dd080f0f3bc70b560f2d202f38e709b9.tar.gz
phpbb-ea5e46f6dd080f0f3bc70b560f2d202f38e709b9.tar.bz2
phpbb-ea5e46f6dd080f0f3bc70b560f2d202f38e709b9.zip
[ticket/13044] \G\M\T to GMT in whole project
Note that there are more uses of "\G\M\T" in vendor files. PHPBB3-13044
Diffstat (limited to 'phpBB/includes/functions_download.php')
-rw-r--r--phpBB/includes/functions_download.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/includes/functions_download.php b/phpBB/includes/functions_download.php
index 02dea6c113..3be84299f0 100644
--- a/phpBB/includes/functions_download.php
+++ b/phpBB/includes/functions_download.php
@@ -60,13 +60,13 @@ function send_avatar_to_browser($file, $browser)
}
else
{
- header('Expires: ' . gmdate('D, d M Y H:i:s \G\M\T', time() + 31536000));
+ header('Expires: ' . gmdate('D, d M Y H:i:s', time() + 31536000) . ' GMT');
}
}
else
{
header('Content-Disposition: inline; ' . header_filename($file));
- header('Expires: ' . gmdate('D, d M Y H:i:s \G\M\T', time() + 31536000));
+ header('Expires: ' . gmdate('D, d M Y H:i:s', time() + 31536000) . ' GMT');
}
$size = @filesize($file_path);
@@ -421,7 +421,7 @@ function set_modified_headers($stamp, $browser)
send_status_line(304, 'Not Modified');
// seems that we need those too ... browsers
header('Pragma: public');
- header('Expires: ' . gmdate('D, d M Y H:i:s \G\M\T', time() + 31536000));
+ header('Expires: ' . gmdate('D, d M Y H:i:s', time() + 31536000) . ' GMT');
return true;
}
else