For 23 and 24 we are modifying the default Sanitizer. Note that
for 24 and upwards we are doing the same with our extended
Sanitizer. So this is just an interim hack for those old versions.
Changes:
* None. This import contains _NO_CHANGES_ to the simplepie.inc file, changes are
controlled through OO extension of the classes instead.
+ * Exception: The Sanitizer has been modified to return valid URLs. The change
+ is done through OO extension in 25 and upwards but not in 23 and 24.
Dan Poltawski <talktodan@gmail.com>
Petr Skoda
if ($type & SIMPLEPIE_CONSTRUCT_IRI)
{
$data = SimplePie_Misc::absolutize_url($data, $base);
+ // Moodle modification - Only return valid URLs. Note this change is interim and
+ // 2.5 and upwards have the cleaning performed in our own sanitizer.
+ $data = clean_param($data, PARAM_URL);
+ // End of Moodle modification.
}
if ($type & (SIMPLEPIE_CONSTRUCT_TEXT | SIMPLEPIE_CONSTRUCT_IRI))