2
0
forked from Wavyzz/dolibarr

Fix #yogosha4534

This commit is contained in:
Laurent Destailleur
2020-09-19 01:58:46 +02:00
parent 6a45545ec1
commit a0b230fa46

View File

@@ -606,9 +606,9 @@ function GETPOST($paramname, $check = 'alphanohtml', $method = 0, $filter = null
break;
}
// Sanitizing for special var name. There is no reason to allow a backtopage to an external URL.
// Sanitizing for special parameters. There is no reason to allow the backtopage parameter to contains an external URL.
if ($paramname == 'backtopage') {
$out = preg_replace(array('/\/\/+/', '/^[a-z]*:/'), '', $out);
$out = preg_replace(array('/[\\\/][\\\/]+/', '/^[a-z]*:/'), '', $out);
}
// Code for search criteria persistence.