[wp-trac] Re: [WordPress Trac] #2059: Slashes stripped in <pre>
(caused by #1793)
WordPress Trac
wp-trac at lists.automattic.com
Fri Aug 31 16:36:06 GMT 2007
#2059: Slashes stripped in <pre> (caused by #1793)
------------------------------------+---------------------------------------
Reporter: allan | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.3
Component: General | Version: 1.5.2
Severity: normal | Resolution:
Keywords: has-patch dev-feedback |
------------------------------------+---------------------------------------
Comment (by mdawaffe):
Messing with stripslashes is the wrong approach.
A good rule of thumb, never use preg_replace(/e); the slashing is too
complicated. Use preg_replace_callback() instead.
--
Ticket URL: <http://trac.wordpress.org/ticket/2059#comment:5>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list