mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 09:38:23 +01:00
Better sanitizing
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user