In clean_html, skip html purifier if no tags are found

Bug #1364227 reported by Nigel Cunningham
6
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.

Tags: performance
Changed in mahara:
assignee: nobody → Nigel Cunningham (nigelc-g)
status: New → In Progress
Changed in mahara:
importance: Undecided → Medium
tags: added: performance
Revision history for this message
Kristina Hoeppner (kris-hoeppner) wrote :
Changed in mahara:
milestone: none → 15.04.0
Robert Lyon (robertl-9)
Changed in mahara:
status: In Progress → Triaged
Aaron Wells (u-aaronw)
Changed in mahara:
status: Triaged → Won't Fix
Robert Lyon (robertl-9)
Changed in mahara:
milestone: 15.04.0 → 15.04.1
Robert Lyon (robertl-9)
Changed in mahara:
milestone: 15.04.1 → none
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.