Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
4.1.1
-
None
-
MOODLE_401_STABLE
Description
- Create a database activity
- Go to field and add a field. Enter html in field name and description like `ab'"cd<b>ef</b>g`
- Reset template
- Notice how incoherent this html code is handled :
- In the Manage fields page the html code will be trigerred (ef will be bold) in the table
- In the manage field page in the dropdown at the bottom, the html tag will be stripped/removed
- In the Database main page, the html tags will be displayed as text
- In the template page, the html will be triggered in the textarea (if code editor enabled) but only in the tag used to display the field value (surrounded by [[ and ]])
- In add/edit entry, the html tags will be displayed as text
A solution would be to strip tag immediatly after saving.
Putting this as "Could be a security issue" just in case. I don't think there is a security issue with the default moodle parameter (might be in rare case of permission to use html being removed to teacher ...). I also quickly looked at database permission and it doesn't seems possible to give ability to a non teacher to only manage field but not preset. Feel free to remove the "could be a security issue" tag.
Attachments
Issue Links
- has a non-specific relationship to
-
MDL-75498 Add ##otherfields##, [[FIELD#name]] and [[FIELD#description]] tags to the database templates
-
- Closed
-