Added logging for missing 'hash'
authorRoland Häder <roland@mxchange.org>
Sat, 6 Oct 2012 22:55:17 +0000 (22:55 +0000)
committerRoland Häder <roland@mxchange.org>
Sat, 6 Oct 2012 22:55:17 +0000 (22:55 +0000)
inc/modules/loader.php

index df5647ff081f0bc40886e0e0c625b1efb75c45bd..3ff6d6d8d7df5efcde4821dcf7225927a754f95a 100644 (file)
@@ -63,6 +63,12 @@ if ((isGetRequestElementSet('url')) && (isGetRequestElementSet('hash'))) {
                redirectToUrl('modules.php?module=index');
        }
 } else {
+       // Is the hash not provided?
+       if (!isGetRequestElementSet('hash')) {
+               // Very old (external!) call
+               logDebugMessage(__FUNCTION__, __LINE__, 'Possible old call on loader.php detected. Redirecting to index.php anyway ...');
+       } // END - if
+
        // Invalid or no URL entered!
        redirectToUrl('modules.php?module=index');
 }