← Back to team overview

mahara-contributors team mailing list archive

[Bug 1364227] [NEW] In clean_html, skip html purifier if no tags are found

 

Public bug reported:

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.

** Affects: mahara
     Importance: Undecided
     Assignee: Nigel Cunningham (nigelc-g)
         Status: In Progress

** Changed in: mahara
       Status: New => In Progress

** Changed in: mahara
     Assignee: (unassigned) => Nigel Cunningham (nigelc-g)

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1364227

Title:
  In clean_html, skip html purifier if no tags are found

Status in Mahara ePortfolio:
  In Progress

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1364227/+subscriptions


Follow ups

References