Skip to content

Commit 7cbd9e9

Browse files
committed
[ticket/13044] move GMT string out of gmdate()
PHPBB3-13044
1 parent 33b2063 commit 7cbd9e9

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

phpBB/feed.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@
164164
{
165165
header('Content-type: text/html; charset=UTF-8');
166166
header('Cache-Control: private, no-cache="set-cookie"');
167-
header('Expires: ' . gmdate('D, d M Y H:i:s \G\M\T', time()));
167+
header('Expires: ' . gmdate('D, d M Y H:i:s', time()) . ' GMT');
168168
header('Pragma: no-cache');
169169

170170
$mtime = explode(' ', microtime());

phpBB/includes/functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5062,7 +5062,7 @@ function page_header($page_title = '', $display_online_list = false, $item_id =
50625062
// application/xhtml+xml not used because of IE
50635063
'Content-type' => 'text/html; charset=UTF-8',
50645064
'Cache-Control' => 'private, no-cache="set-cookie"',
5065-
'Expires' => gmdate('D, d M Y H:i:s \G\M\T', time()),
5065+
'Expires' => gmdate('D, d M Y H:i:s', time() . ' GMT'),
50665066
'Pragma' => 'no-cache',
50675067
);
50685068
if (!empty($user->data['is_bot']))

phpBB/includes/functions_acp.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ function adm_page_header($page_title)
112112
// application/xhtml+xml not used because of IE
113113
'Content-type' => 'text/html; charset=UTF-8',
114114
'Cache-Control' => 'private, no-cache="set-cookie"',
115-
'Expires' => gmdate('D, d M Y H:i:s \G\M\T', time()),
115+
'Expires' => gmdate('D, d M Y H:i:s', time() . ' GMT'),
116116
'Pragma' => 'no-cache',
117117
);
118118

phpBB/includes/functions_download.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ function send_avatar_to_browser($file, $browser)
5656

5757
if (strpos(strtolower($browser), 'msie 6.0') !== false)
5858
{
59-
header('Expires: ' . gmdate('D, d M Y H:i:s \G\M\T', time()));
59+
header('Expires: ' . gmdate('D, d M Y H:i:s', time()) . ' GMT');
6060
}
6161
else
6262
{
@@ -197,7 +197,7 @@ function send_file_to_browser($attachment, $upload_dir, $category)
197197
header('Content-Disposition: attachment; ' . header_filename(htmlspecialchars_decode($attachment['real_filename'])));
198198
if (empty($user->browser) || (strpos(strtolower($user->browser), 'msie 6.0') !== false))
199199
{
200-
header('Expires: ' . gmdate('D, d M Y H:i:s \G\M\T', time()));
200+
header('Expires: ' . gmdate('D, d M Y H:i:s', time()) . ' GMT');
201201
}
202202
}
203203
else

phpBB/install/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ function page_header()
445445

446446
header('Content-type: text/html; charset=UTF-8');
447447
header('Cache-Control: private, no-cache="set-cookie"');
448-
header('Expires: ' . gmdate('D, d M Y H:i:s \G\M\T', time()));
448+
header('Expires: ' . gmdate('D, d M Y H:i:s', time()) . ' GMT');
449449
header('Pragma: no-cache');
450450

451451
return;

0 commit comments

Comments
 (0)