From: Friendika Date: Wed, 27 Jul 2011 02:20:29 +0000 (-0700) Subject: deal with browser pre-fetch of the ACL img template '{0}' X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=94e027af672cb641c70093e62f54356da0c05ccb;p=friendica.git deal with browser pre-fetch of the ACL img template '{0}' --- diff --git a/boot.php b/boot.php index ae6c1bd090..4c8c1c4d2f 100644 --- a/boot.php +++ b/boot.php @@ -1,6 +1,6 @@ module)) { */ if(! $a->module_loaded) { + + // Stupid browser tried to pre-fetch our ACL img template. Don't log the event or return anything - just quietly exit. + if((x($_SERVER,'QUERY_STRING')) && strpos($_SERVER['QUERY_STRING'],'{0}') !== false) { + killme(); + } + if((x($_SERVER,'QUERY_STRING')) && ($_SERVER['QUERY_STRING'] === 'q=internal_error.html') && isset($dreamhost_error_hack)) { logger('index.php: dreamhost_error_hack invoked. Original URI =' . $_SERVER['REQUEST_URI']); goaway($a->get_baseurl() . $_SERVER['REQUEST_URI']);