From 31686aea4cd7a73819a88244468373e64e85813f Mon Sep 17 00:00:00 2001 From: defacer Date: Sun, 30 Jan 2005 04:39:55 +0000 Subject: [PATCH] Merged from STABLE: 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... --- lib/moodlelib.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/moodlelib.php b/lib/moodlelib.php index bc25135a0f..4668b45026 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -266,6 +266,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) { -- 2.39.5