浏览代码

Better sanitizing

Laurent Destailleur 4 年之前
父节点
当前提交
63bc3aa48a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      htdocs/core/lib/functions.lib.php

+ 1 - 1
htdocs/core/lib/functions.lib.php

@@ -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.