N°2538 enforce generic method to check path validity

Now uses realpath() and StartsWith
This commit is contained in:
Pierre Goiffon
2019-10-16 10:43:01 +02:00
parent 29c30c1f89
commit 607d355c61
4 changed files with 58 additions and 12 deletions

View File

@@ -1,6 +1,6 @@
<?php
define('APPROOT', dirname(__FILE__).'/');
define('APPROOT', dirname(__FILE__).DIRECTORY_SEPARATOR);
define('APPCONF', APPROOT.'conf/');
define('ITOP_DEFAULT_ENV', 'production');
define('MAINTENANCE_MODE_FILE', APPROOT.'data/.maintenance');