Skip to content

Commit

Permalink
MDL-9734 fix for clean_param PARAM_LOCALURL bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiesensei committed May 27, 2007
1 parent c417f26 commit aa38ccc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/moodlelib.php
Expand Up @@ -484,7 +484,7 @@ function clean_param($param, $type) {
return $param; return $param;


case PARAM_LOCALURL: // allow http absolute, root relative and relative URLs within wwwroot 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 (!empty($param)) {
if (preg_match(':^/:', $param)) { if (preg_match(':^/:', $param)) {
// root-relative, ok! // root-relative, ok!
Expand Down

0 comments on commit aa38ccc

Please sign in to comment.