]> git.mxchange.org Git - friendica.git/commitdiff
don't ask
authorFriendika <info@friendika.com>
Fri, 17 Dec 2010 04:12:23 +0000 (20:12 -0800)
committerFriendika <info@friendika.com>
Fri, 17 Dec 2010 04:12:23 +0000 (20:12 -0800)
index.php

index 2f56d541430a1b67182ec20a72d88737b308fa27..eac3b66df7b5125b89de34439d38c783ffab1f66 100644 (file)
--- a/index.php
+++ b/index.php
@@ -131,6 +131,11 @@ if(strlen($a->module)) {
                $a->module_loaded = true;
        }
        else {
+               if((x($_SERVER,'QUERY_STRING')) && ($_SERVER['QUERY_STRING'] === 'q=internal_error.html') && isset($dreamhost_error_hack)) {
+                       logger('index.php: dreamhost_error_hack invoked');
+                       goaway($a->get_baseurl() . $_SERVER['REQUEST_URI']);
+               }
+
                logger('index.php: page not found: ' . $_SERVER['REQUEST_URI'] . ' QUERY: ' . $_SERVER['QUERY_STRING'], LOGGER_DEBUG);
                header($_SERVER["SERVER_PROTOCOL"] . ' 404 ' . t('Not Found'));
                notice( t('Page not found.' ) . EOL);