deal with browser pre-fetch of the ACL img template '{0}'
This commit is contained in:
parent
454ff3c7f0
commit
94e027af67
2 changed files with 7 additions and 1 deletions
2
boot.php
2
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 );
|
||||
|
||||
|
|
|
@ -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']);
|
||||
|
|
Loading…
Reference in a new issue