MDL-41623 ensure all rss links are valid urls.

This commit is contained in:
Eloy Lafuente (stronk7) 2013-09-06 02:45:16 +02:00
parent ba7b843c01
commit d037dba81c

View File

@ -198,6 +198,7 @@ class moodle_simplepie_sanitize extends SimplePie_Sanitize {
if ($absolute !== false) { if ($absolute !== false) {
$data = $absolute; $data = $absolute;
} }
$data = clean_param($data, PARAM_URL);
} }
if ($type & (SIMPLEPIE_CONSTRUCT_TEXT | SIMPLEPIE_CONSTRUCT_IRI)) { if ($type & (SIMPLEPIE_CONSTRUCT_TEXT | SIMPLEPIE_CONSTRUCT_IRI)) {