-
Bug
-
Resolution: Fixed
-
Minor
-
4.1.6, 4.2.3, 4.3, 4.4
Filters are applied to modname when IMO it shouldn't, so for example the modname "assign" becomes "**ign" if you have the filter_censor plugin installed. This modname isn't the translated name, it's the name of the plugin so it shouldn't have filters applied.
How to reproduce:
- In a Moodle site, install the filter_censor plugin. In 3.X sites it's part of core. When installing it, add the word "ass" in the list of bad words.
- Go to "Site administration > Plugins > Manage filters" and click "Settings" next to "Word censorship".
- In "Custom bad words list", add the word "ass".
- Back to "Site administration > Plugins > Manage filters", enable the "Word censorship" plugin and set "Apply to" to "Content and headings".
- Add the "Recent accessed items" block to the Dashboard.
- Create a course and create an assignment inside the course.
- With a user enrolled in the course, open the assign.
- With this same user, go to Dashboard and check that the assign appears in the recent accessed items block.
- Now call the WebService block_recentlyaccesseditems_get_recent_items using this user's token. Check that the modname of the item is "**ign" instead of "assign".