Browse files

Stopgap measure for the wrong behavior discussed in SC#87.

I believe this ensures the required behavior, but we may still change
it because it can be confusing...
  • Loading branch information...
1 parent bb88897 commit 9f5b48b33e835af739f898cebe442e409efba8ea defacer committed Jan 30, 2005
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/moodlelib.php
View
1 lib/moodlelib.php
@@ -187,6 +187,7 @@ function clean_param($param, $options) {
} else {
$param =''; // not really ok
}
+ $options ^= PARAM_URL; // Turn off the URL bit so that simple PARAM_URLs don't test true for PARAM_LOCALURL
}
if ($options & PARAM_LOCALURL) {

0 comments on commit 9f5b48b

Please sign in to comment.