mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
Merge remote-tracking branch 'origin/support/2.7' into support/3.0
This commit is contained in:
@@ -51,8 +51,9 @@ $oKPI->ComputeAndReport("Session Start");
|
||||
|
||||
$sTargetPage = APPROOT.'env-'.$sEnvironment.'/'.$sModule.'/'.$sPage;
|
||||
|
||||
if (!file_exists($sTargetPage))
|
||||
{
|
||||
if (!file_exists($sTargetPage)
|
||||
|| (strtolower(pathinfo($sTargetPage, PATHINFO_EXTENSION)) !== "php")
|
||||
) {
|
||||
// Do not recall the parameters (security takes precedence)
|
||||
echo "Wrong module, page name or environment...";
|
||||
exit;
|
||||
|
||||
Reference in New Issue
Block a user