MDL-9734 fix for clean_param PARAM_LOCALURL bug

This commit is contained in:
jamiesensei
2007-05-27 11:20:24 +00:00
parent c417f26c85
commit aa38cccbdf
+1 -1
View File
@@ -484,7 +484,7 @@ function clean_param($param, $type) {
return $param;
case PARAM_LOCALURL: // allow http absolute, root relative and relative URLs within wwwroot
clean_param($param, PARAM_URL);
$param = clean_param($param, PARAM_URL);
if (!empty($param)) {
if (preg_match(':^/:', $param)) {
// root-relative, ok!