[wp-trac] Re: [WordPress Trac] #7559: strip_tags() breaks category names with left angle brackets

WordPress Trac wp-trac at lists.automattic.com
Wed May 13 10:49:24 GMT 2009


#7559: strip_tags() breaks category names with left angle brackets
--------------------------+-------------------------------------------------
 Reporter:  squirreling   |        Owner:  ryan    
     Type:  defect (bug)  |       Status:  reopened
 Priority:  high          |    Milestone:  2.8     
Component:  Taxonomy      |      Version:  2.6     
 Severity:  minor         |   Resolution:          
 Keywords:  needs-patch   |  
--------------------------+-------------------------------------------------
Changes (by Denis-de-Bernardy):

  * keywords:  needs-patch 2nd-opinion => needs-patch


Comment:

 I've just uploaded a slightly modified version of your patch. (removed the
 strip_tags() call as it becomes useless.)

 There is a genuine bug in there before any of it can be committed. If you
 create * foo'bar<foo" * foo<bar> * '"bar"<foo<bar>' as a tag, that tag can
 be added in the post editor using the autocomplete, but it then won't
 display correctly in the tag editor.

 a few checks to run with * foo'bar<foo" * foo<bar> * '"bar"<foo<bar>':

  - can it be added as a post category/does it display correctly in the
 editor? in the post?
  - can it be added as a post tag with/without autocomplete/does it display
 correctly in the editor? in the post?
  - can it be added as a link category/does it display correctly in the
 editor? in the links widget?

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


More information about the wp-trac mailing list