From deb263761dcc40f5ee719c58fa75519dc0d8afe8 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 22 May 2013 15:37:07 +0200 Subject: [PATCH] Preventing erroneous URLs from filling up the log files --- .../files/lib/system/request/RequestHandler.class.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/request/RequestHandler.class.php b/wcfsetup/install/files/lib/system/request/RequestHandler.class.php index ef43988a38..2fb25bff34 100644 --- a/wcfsetup/install/files/lib/system/request/RequestHandler.class.php +++ b/wcfsetup/install/files/lib/system/request/RequestHandler.class.php @@ -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 -- 2.20.1