mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-12 23:14:18 +01:00
N°7542 - code hardening
This commit is contained in:
@@ -74,7 +74,7 @@ try
|
||||
// First check if we can redirect the route to a dedicated controller
|
||||
$sRoute = utils::ReadParam('route', '', false, utils::ENUM_SANITIZATION_FILTER_ROUTE);
|
||||
$oRouter = Router::GetInstance();
|
||||
if ($oRouter->CanDispatchRoute($sRoute)) {
|
||||
if ($operation === '' && $oRouter->CanDispatchRoute($sRoute)) {
|
||||
$mResponse = $oRouter->DispatchRoute($sRoute);
|
||||
|
||||
// If response isn't a \WebPage, it is most likely that the output already occured, stop the script.
|
||||
|
||||
Reference in New Issue
Block a user