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

WordPress Trac wp-trac at lists.automattic.com
Sat Jun 27 09:43:25 GMT 2009


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

Comment(by MattyRob):

 Replying to [comment:35 hakre]:
 > Category names should not be allowed to have < or > chars in it. What
 about filtering the input and removing those values?

 After the ticket has been logged and open for 10 months I think it's a
 little late to imply that the ticket is not valid and that the code should
 simply not allow angle brackets in category names!

 The first question posed would be "Why not?" I think putting such symbols
 into category names, link names and tags is totally acceptable and should
 not be blocked or filtered, but should be properly handled and escaped.

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


More information about the wp-trac mailing list