2
0
forked from Wavyzz/dolibarr

Fix regression on backtopage

This commit is contained in:
Laurent Destailleur
2020-09-20 19:55:44 +02:00
parent b2f8c4c6b8
commit 2fcc0791ac

View File

@@ -561,7 +561,8 @@ function GETPOST($paramname, $check = 'alphanohtml', $method = 0, $filter = null
// 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 = str_replace('\\', '/', $out);
$out = preg_replace(array('/^\/\/+/', '/^[a-z]*:/i'), '', $out);
}
// Code for search criteria persistence.