aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-07-26 19:20:29 -0700
committerFriendika <info@friendika.com>2011-07-26 19:20:29 -0700
commit94e027af672cb641c70093e62f54356da0c05ccb (patch)
tree6f577ad702264bf1790b8adbd29e3b7d515b34ad
parent454ff3c7f0a4729dbf9a9dd116325630a193f0fb (diff)
downloadvolse-hubzilla-94e027af672cb641c70093e62f54356da0c05ccb.tar.gz
volse-hubzilla-94e027af672cb641c70093e62f54356da0c05ccb.tar.bz2
volse-hubzilla-94e027af672cb641c70093e62f54356da0c05ccb.zip
deal with browser pre-fetch of the ACL img template '{0}'
-rw-r--r--boot.php2
-rw-r--r--index.php6
2 files changed, 7 insertions, 1 deletions
diff --git a/boot.php b/boot.php
index ae6c1bd09..4c8c1c4d2 100644
--- 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 );
diff --git a/index.php b/index.php
index 3e72baddc..0c40c0729 100644
--- 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']);