[wp-trac] [WordPress Trac] #12284: I/O Sanity Failures With Invalid HTML Entity References

WordPress Trac wp-trac at lists.automattic.com
Fri Feb 19 14:40:06 UTC 2010


#12284: I/O Sanity Failures With Invalid HTML Entity References
-----------------------------+----------------------------------------------
 Reporter:  miqrogroove      |       Owner:  ryan     
     Type:  defect (bug)     |      Status:  new      
 Priority:  highest omg bbq  |   Milestone:  3.0      
Component:  Security         |     Version:           
 Severity:  blocker          |    Keywords:  has-patch
-----------------------------+----------------------------------------------

Comment(by hakre):

 I fixed one if clause (please double check where the global array belongs
 to, it does not have that many lines any longer, I compacted it which
 might help to better read / write).

 And then some measurements about the improvements, the second run is in my
 patch:

 {{{
 10 runs, 10.000 iterations per run.

 miqro-html-injections-for-wordpress.2.patch implementation:

 Run #0: 0.721942186356 seconds
 Run #1: 0.715867996216 seconds
 Run #2: 0.713424921036 seconds
 Run #3: 0.720436096191 seconds
 Run #4: 0.718170881271 seconds
 Run #5: 0.711031198502 seconds
 Run #6: 0.719617843628 seconds
 Run #7: 0.718825101852 seconds
 Run #8: 0.714194059372 seconds
 Run #9: 0.711913108826 seconds

 optimised:

 Run #0: 0.478354930878 seconds
 Run #1: 0.485837936401 seconds
 Run #2: 0.479050159454 seconds
 Run #3: 0.485183000565 seconds
 Run #4: 0.478661060333 seconds
 Run #5: 0.478514194489 seconds
 Run #6: 0.477350234985 seconds
 Run #7: 0.484051942825 seconds
 Run #8: 0.479024887085 seconds
 Run #9: 0.484555006027 seconds
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12284#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list