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 df5647f..3ff6d6d 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');
 }