MDL-9734 fix for clean_param PARAM_LOCALURL bug
authorjamiesensei <jamiesensei>
Sun, 27 May 2007 11:19:04 +0000 (11:19 +0000)
committerjamiesensei <jamiesensei>
Sun, 27 May 2007 11:19:04 +0000 (11:19 +0000)
lib/moodlelib.php

index c84f819ad6da4dc66cef8fd625422dc9d25cbf8c..8af6ff0f4a805c5d6b6b7bb15809d385e8d0ff2b 100644 (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!