aboutsummaryrefslogtreecommitdiff
path: root/lib/http-conditional.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2025-12-07 20:27:06 +0100
committerGravatar GitHub <noreply@github.com> 2025-12-07 20:27:06 +0100
commit19975c22ecf7f94ee3c0ed10d19acee068ccc06b (patch)
tree6f8e4261209fdb97389cd7dc554630628c4600ec /lib/http-conditional.php
parentd9ac9c513f733e5bc3da368e3aa3af79367c7197 (diff)
Fix minor backslashes (#8292)
Diffstat (limited to 'lib/http-conditional.php')
-rw-r--r--lib/http-conditional.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/http-conditional.php b/lib/http-conditional.php
index e56732354..9846f0813 100644
--- a/lib/http-conditional.php
+++ b/lib/http-conditional.php
@@ -94,7 +94,7 @@ function httpConditional(int $UnixTimeStamp, int $cacheSeconds = 0, int $cachePr
$nbCond = 0;
//rfc2616-sec3.html#sec3.3.1
- $dateLastModif = gmdate('D, d M Y H:i:s \G\M\T', $UnixTimeStamp);
+ $dateLastModif = gmdate('D, d M Y H:i:s \\G\\M\\T', $UnixTimeStamp);
$dateCacheClient = 'Thu, 10 Jan 1980 20:30:40 GMT';
//rfc2616-sec14.html#sec14.19 //='"0123456789abcdef0123456789abcdef"'
@@ -169,7 +169,7 @@ function httpConditional(int $UnixTimeStamp, int $cacheSeconds = 0, int $cachePr
else $cache = '';
$cache .= 'max-age=' . floor($cacheSeconds);
}
- //header('Expires: '.gmdate('D, d M Y H:i:s \G\M\T',time()+$cacheSeconds)); //HTTP/1.0 //rfc2616-sec14.html#sec14.21
+ //header('Expires: '.gmdate('D, d M Y H:i:s \\G\\M\\T',time()+$cacheSeconds)); //HTTP/1.0 //rfc2616-sec14.html#sec14.21
header('Cache-Control: ' . $cache); //rfc2616-sec14.html#sec14.9
header('Last-Modified: ' . $dateLastModif);
header('Etag: ' . $etagServer);
@@ -204,7 +204,7 @@ function httpConditionalRefresh(int $UnixTimeStamp): void {
elseif (is_string($_SERVER['PATH_TRANSLATED'] ?? null)) $scriptName = $_SERVER['PATH_TRANSLATED'];
else return;
- $dateLastModif = gmdate('D, d M Y H:i:s \G\M\T', $UnixTimeStamp);
+ $dateLastModif = gmdate('D, d M Y H:i:s \\G\\M\\T', $UnixTimeStamp);
if (is_string($_SERVER['QUERY_STRING'] ?? null)) $myQuery = '?' . $_SERVER['QUERY_STRING'];
else $myQuery = '';