From: Alexander Ebert Date: Wed, 22 May 2013 13:37:07 +0000 (+0200) Subject: Preventing erroneous URLs from filling up the log files X-Git-Tag: 2.0.0_Beta_1~87^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=deb263761dcc40f5ee719c58fa75519dc0d8afe8;p=GitHub%2FWoltLab%2FWCF.git Preventing erroneous URLs from filling up the log files --- 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