summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Lang <mail@adrianlang.de>2009-03-07 02:19:38 +0100
committerAdrian Lang <mail@adrianlang.de>2009-03-11 10:39:43 +0100
commitc0f44ca44d9530c3658d22c0b3ac311a60cbff6c (patch)
tree933a6d4d792b97e1e3b4335e7a88180fb7c9292f
parentc0db74dcfbff431970ae1d829e776f466f1c4091 (diff)
Check if that $_SERVER param is set before accessing.
-rw-r--r--lib/action.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/action.php b/lib/action.php
index 812df635e..45ce56ac0 100644
--- a/lib/action.php
+++ b/lib/action.php
@@ -819,9 +819,8 @@ class Action extends HTMLOutputter // lawsuit
}
if ($lm) {
header('Last-Modified: ' . date(DATE_RFC1123, $lm));
- $if_modified_since = $_SERVER['HTTP_IF_MODIFIED_SINCE'];
- if ($if_modified_since) {
- $ims = strtotime($if_modified_since);
+ if (isset($_SERVER['HTTP_IF_MODIFIED_SINCE'])) {
+ $ims = strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']);
if ($lm <= $ims) {
$if_none_match = $_SERVER['HTTP_IF_NONE_MATCH'];
if (!$if_none_match ||