mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 01:28:19 +01:00
Fix #yogosha4529
This commit is contained in:
@@ -606,6 +606,11 @@ 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.
|
||||
if ($paramname == 'backtopage') {
|
||||
$out = preg_replace(array('/\/\//', '/^[a-z]*:/'), '', $out);
|
||||
}
|
||||
|
||||
// Code for search criteria persistence.
|
||||
// Save data into session if key start with 'search_' or is 'smonth', 'syear', 'month', 'year'
|
||||
if (empty($method) || $method == 3 || $method == 4)
|
||||
|
||||
Reference in New Issue
Block a user