Exclude specific itop modules from being executed through exec.php

This commit is contained in:
jf-cbd
2026-03-11 15:39:27 +01:00
parent 4cb3a5c16e
commit c8f5ec4a0d

View File

@@ -87,7 +87,7 @@ if (is_link($sPageEnvFullPath)) {
}
$sTargetPage = CheckPageExists($sPageEnvFullPath, $aPossibleBasePaths);
if ($sTargetPage === false) {
if ($sTargetPage === false || $sModule === 'core' || $sModule === 'dictionaries') {
// Do not recall the page parameters (security takes precedence)
echo "Wrong module, page name or environment...";
exit;