[wpmu-trac] [WordPress MU Trac] #1067: Text widget adds extra slashes when edited by a non site admin

WordPress MU Trac wpmu-trac at lists.automattic.com
Mon Aug 10 13:38:39 UTC 2009


#1067: Text widget adds extra slashes when edited by a non site admin
----------------------------+-----------------------------------------------
 Reporter:  DeannaS         |        Owner:  donncha 
     Type:  enhancement     |       Status:  reopened
 Priority:  normal          |    Milestone:  WPMU 2.0
Component:  Administration  |      Version:  2.8.2   
 Severity:  normal          |   Resolution:          
 Keywords:                  |  
----------------------------+-----------------------------------------------

Comment(by Denis-de-Bernardy):

 cross posting here too:

 Replying to jamescollins the wp trac:
 > The change in WPMU has been running on our WPMU installs for a few weeks
 and it seems to have fixed the problem.

 try feeding it stuff with a backslash... the correct patch is to:

 stripslashes(wp_filter_post_kses(addslashes(...)))

 wp_filter_post_kses() expects slashed data (it's normally used with a
 magic quoted $_POST), but $instance is stripslashed before it's fed to the
 widget's update method.

-- 
Ticket URL: <http://trac.mu.wordpress.org/ticket/1067#comment:18>
WordPress MU Trac <http://mu.wordpress.org/>
WordPress Multiuser


More information about the wpmu-trac mailing list