Better sanitizing

This commit is contained in:
Laurent Destailleur
2020-09-19 00:05:29 +02:00
parent 6d2d5d7cae
commit 63bc3aa48a

View File

@@ -608,7 +608,7 @@ function GETPOST($paramname, $check = 'alphanohtml', $method = 0, $filter = null
// Sanitizing for special var name. There is no reason to allow a backtopage to 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.