Index: includes/bootstrap.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/bootstrap.inc,v retrieving revision 1.221 diff -u -p -r1.221 bootstrap.inc --- includes/bootstrap.inc 6 Sep 2008 08:36:19 -0000 1.221 +++ includes/bootstrap.inc 5 Sep 2008 23:15:13 -0000 @@ -313,6 +313,13 @@ function drupal_unset_globals() { } } } + // Make sure that the $_SERVER variable has everything we need. + if (!isset($_SERVER['HTTP_REFERER'])) { + $_SERVER['HTTP_REFERER'] = ''; + } + if (!isset($_SERVER['REQUEST_TIME'])) { + $_SERVER['REQUEST_TIME'] = time(); + } } /**