MDL-9734 fix for clean_param PARAM_LOCALURL bug

This commit is contained in:
jamiesensei 2007-05-27 11:19:04 +00:00
parent 64360ee7b5
commit 9368476553

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!