forked from GNUsocial/gnu-social
Check if that $_SERVER param is set before accessing.
This commit is contained in:
parent
c0db74dcfb
commit
c0f44ca44d
@ -819,9 +819,8 @@ class Action extends HTMLOutputter // lawsuit
|
|||||||
}
|
}
|
||||||
if ($lm) {
|
if ($lm) {
|
||||||
header('Last-Modified: ' . date(DATE_RFC1123, $lm));
|
header('Last-Modified: ' . date(DATE_RFC1123, $lm));
|
||||||
$if_modified_since = $_SERVER['HTTP_IF_MODIFIED_SINCE'];
|
if (isset($_SERVER['HTTP_IF_MODIFIED_SINCE'])) {
|
||||||
if ($if_modified_since) {
|
$ims = strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']);
|
||||||
$ims = strtotime($if_modified_since);
|
|
||||||
if ($lm <= $ims) {
|
if ($lm <= $ims) {
|
||||||
$if_none_match = $_SERVER['HTTP_IF_NONE_MATCH'];
|
$if_none_match = $_SERVER['HTTP_IF_NONE_MATCH'];
|
||||||
if (!$if_none_match ||
|
if (!$if_none_match ||
|
||||||
|
Loading…
x
Reference in New Issue
Block a user