mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-07 16:41:48 +01:00
Fix warning
This commit is contained in:
@@ -635,7 +635,7 @@ function GETPOST($paramname, $check = 'alphanohtml', $method = 0, $filter = null
|
||||
}
|
||||
|
||||
if (empty($method) || $method == 3 || $method == 4) {
|
||||
$relativepathstring = $_SERVER["PHP_SELF"];
|
||||
$relativepathstring = (empty($_SERVER["PHP_SELF"]) ? '' : $_SERVER["PHP_SELF"]);
|
||||
// Clean $relativepathstring
|
||||
if (constant('DOL_URL_ROOT')) {
|
||||
$relativepathstring = preg_replace('/^'.preg_quote(constant('DOL_URL_ROOT'), '/').'/', '', $relativepathstring);
|
||||
|
||||
Reference in New Issue
Block a user