Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.6.5, 1.7.3, 1.8.3, 1.9
-
Component/s: RSS
-
Labels:None
-
Environment:All
-
Affected Branches:MOODLE_16_STABLE, MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE
-
Fixed Branches:MOODLE_19_STABLE, MOODLE_20_STABLE
Description
When specifying spaces or chars with diacritics in custom title of an RSS feed, these chars are gobbled, i.e. are discarded by Moodle.
This can be traced to the line:
$preferredtitle = optional_param('preferredtitle', '', PARAM_ALPHA);
in MOODLEROOT/blocks/rss_client/block_rss_client_action.php
The PARAM_ALPHA is stripping out all those spaces and diacritics:
case PARAM_ALPHA: // Remove everything not a-z
367 return eregi_replace('[^a-zA-Z]', '', $param);
So, I guess the block code needs changing to use PARAM_CLEANHTML or PARAM_TEXT?