[wp-trac] [WordPress Trac] #18322: The Road to Magic Quotes Sanity

WordPress Trac wp-trac at lists.automattic.com
Wed Aug 3 20:30:29 UTC 2011


#18322: The Road to Magic Quotes Sanity
--------------------------+-----------------------------
 Reporter:  ryan          |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Future Release
Component:  General       |     Version:  3.2.1
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+-----------------------------

Comment (by ryan):

 Patch introduces a $wp_magic_quotes global flag, which defaults to on.
 wp_magic_quotes() slashes all GPCS if the flag is on. wp_slash() and
 wp_unslash() also consult this flag.  If on then addslashes() and
 stripslashes() are performed wp_slash() and wp_unslash(), respectively.
 If off then they simply return the data without adding or stripping.

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


More information about the wp-trac mailing list