In clean_html, skip html purifier if no tags are found
Bug #1364227 reported by
Nigel Cunningham
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Won't Fix
|
Medium
|
Nigel Cunningham |
Bug Description
In clean_html, check for a less than sign in the text at the start of execution. If there isn't one, the text can't have any HTML tags and can be returned after escaping HTML special characters. This avoids the execution time and memory requirements (at least potentially) of the HTML purifier library.
Changed in mahara: | |
assignee: | nobody → Nigel Cunningham (nigelc-g) |
status: | New → In Progress |
Changed in mahara: | |
importance: | Undecided → Medium |
tags: | added: performance |
Changed in mahara: | |
status: | In Progress → Triaged |
Changed in mahara: | |
status: | Triaged → Won't Fix |
Changed in mahara: | |
milestone: | 15.04.0 → 15.04.1 |
Changed in mahara: | |
milestone: | 15.04.1 → none |
To post a comment you must log in.
https:/ /reviews. mahara. org/3620