#19237: The use of > in single or double quoted attributes in strip_tags
---------------------------------+---------------------------------------
     Reporter:  chris.khoo@…     |                    Owner:  khoomeister
         Type:  Bug              |                   Status:  new
    Component:  Utilities        |                  Version:  master
     Severity:  Release blocker  |               Resolution:
     Keywords:                   |             Triage Stage:  Accepted
    Has patch:  1                |      Needs documentation:  0
  Needs tests:  0                |  Patch needs improvement:  0
Easy pickings:  0                |                    UI/UX:  0
---------------------------------+---------------------------------------

Comment (by simon29):

 Finally, after nearly two weeks I've found the reason why my servers kept
 crashing on a high traffic, multi server production site :-(

 This new regex is prone to catastrophic backtracking; which, when given
 the right string, spins the CPU into an infinite loop. Performance issues
 is an understatement. Sorry, but this regex literally crashes sites and
 absolutely cannot be included.
 http://www.regular-expressions.info/catastrophic.html
 http://stackoverflow.com/questions/6230489/100-cpu-usage-with-a-regexp-
 depending-on-input-length

 We need to revert this change until we have a parser-based implementation.
 I'll attach a sample "problem string" for y'all to play with.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/19237#comment:29>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to