projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64360ee
)
MDL-9734 fix for clean_param PARAM_LOCALURL bug
author
jamiesensei
<jamiesensei>
Sun, 27 May 2007 11:19:04 +0000
(11:19 +0000)
committer
jamiesensei
<jamiesensei>
Sun, 27 May 2007 11:19:04 +0000
(11:19 +0000)
lib/moodlelib.php
patch
|
blob
|
history
diff --git
a/lib/moodlelib.php
b/lib/moodlelib.php
index c84f819ad6da4dc66cef8fd625422dc9d25cbf8c..8af6ff0f4a805c5d6b6b7bb15809d385e8d0ff2b 100644
(file)
--- a/
lib/moodlelib.php
+++ b/
lib/moodlelib.php
@@
-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!