Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-9734 fix for clean_param PARAM_LOCALURL bug

  • Loading branch information...
commit a18c40a892f1878b39563562d29017766a8bcf4f 1 parent 3281b7d
jamiesensei authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/moodlelib.php
View
2  lib/moodlelib.php
@@ -415,7 +415,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!
Please sign in to comment.
Something went wrong with that request. Please try again.