mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 07:56:06 +02:00
MDL-9734 fix for clean_param PARAM_LOCALURL bug
This commit is contained in:
parent
64360ee7b5
commit
9368476553
@ -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!
|
||||
|
Loading…
x
Reference in New Issue
Block a user