]> git.mxchange.org Git - friendica.git/commitdiff
deal with browser pre-fetch of the ACL img template '{0}'
authorFriendika <info@friendika.com>
Wed, 27 Jul 2011 02:20:29 +0000 (19:20 -0700)
committerFriendika <info@friendika.com>
Wed, 27 Jul 2011 02:20:29 +0000 (19:20 -0700)
boot.php
index.php

index ae6c1bd0901bcc725000ffb816552efe3f92574e..4c8c1c4d2fdc2221ade42939f2ba1a5ae07d98f4 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -1,6 +1,6 @@
 <?php
 
-define ( 'FRIENDIKA_VERSION',      '2.2.1052' );
+define ( 'FRIENDIKA_VERSION',      '2.2.1053' );
 define ( 'DFRN_PROTOCOL_VERSION',  '2.21'    );
 define ( 'DB_UPDATE_VERSION',      1076      );
 
index 3e72baddc5a9d7ec278d9aa9b410da6e4e161564..0c40c07296284cdcdc7cc59a5f7bfeb2adf0d932 100644 (file)
--- a/index.php
+++ b/index.php
@@ -194,6 +194,12 @@ if(strlen($a->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']);