Preventing erroneous URLs from filling up the log files
authorAlexander Ebert <ebert@woltlab.com>
Wed, 22 May 2013 13:37:07 +0000 (15:37 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 22 May 2013 13:37:07 +0000 (15:37 +0200)
wcfsetup/install/files/lib/system/request/RequestHandler.class.php

index ef43988a386eaeccc0537d1c0e29d28f43397800..2fb25bff348fa9176ac4e9ad6bcc75f154f3d6fd 100644 (file)
@@ -61,7 +61,12 @@ class RequestHandler extends SingletonFactory {
                $this->isACPRequest = $isACPRequest;
                
                if (!RouteHandler::getInstance()->matches()) {
-                       throw new SystemException("Cannot handle request, no valid route provided.");
+                       if (ENABLE_DEBUG_MODE) {
+                               throw new SystemException("Cannot handle request, no valid route provided.");
+                       }
+                       else {
+                               throw new IllegalLinkException();
+                       }
                }
                
                // build request