[wp-trac] [WordPress Trac] #29557: PHP ≤ 5.4.8 Crashes on '[' Character in Posts

WordPress Trac noreply at wordpress.org
Thu Oct 30 23:20:45 UTC 2014


#29557: PHP ≤ 5.4.8 Crashes on '[' Character in Posts
------------------------------------------------------+--------------------
 Reporter:  MrBobDobolina                             |       Owner:
     Type:  defect (bug)                              |      Status:  new
 Priority:  highest omg bbq                           |   Milestone:  4.0.1
Component:  Formatting                                |     Version:  4.0
 Severity:  blocker                                   |  Resolution:
 Keywords:  wptexturize has-patch commit fixed-major  |     Focuses:
------------------------------------------------------+--------------------

Comment (by miqrogroove):

 Replying to [comment:76 kitchin]:
 > Miqrogroove, I did test patch 10 and all was fine. I compared it to an
 algorithm that first did the shortcode regex and then used strpos() to do
 the tag/comment parsing. The only tests that failed were the expected ones
 by doing it that way: shortcode-like text within html tags. Also tested it
 the other way (tags then shortcodes) and got expected failures. So you
 have the right tests as far as I see.

 For the shortcodes-first strategy to work, we would have to remove the
 shortcodes before looking for HTML.  (Assuming we continue to allow HTML
 in shortcodes as well).  This would work only on a very limited basis,
 otherwise the function would become recursive and lead to DoS problems.
 I'll keep working on this at least to see if it runs faster or slower than
 the trunk code.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29557#comment:103>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list