[wp-trac] Re: [WordPress Trac] #2434: Linked Image + Apostrophe In
Post = Database Error
WordPress Trac
wp-trac at lists.automattic.com
Thu Feb 16 20:54:49 GMT 2006
#2434: Linked Image + Apostrophe In Post = Database Error
----------------------------+-----------------------------------------------
Id: 2434 | Status: new
Component: Administration | Modified: Thu Feb 16 20:54:49 2006
Severity: major | Milestone:
Priority: high | Version: 2.0.1
Owner: dougal | Reporter: Dave-Millercom
----------------------------+-----------------------------------------------
Changes (by dougal):
* keywords: image,link,database,apostrophe => image, link, database,
apostrophe, attachments, sql, mysql
* priority: normal => high
* owner: anonymous => dougal
Comment:
I spent the last week trying to track down this same problem, and finally
came to the same conclusion you did (see
[http://comox.textdrive.com/pipermail/wp-testers/2006-February/002199.html
my thread on wp-testers]).
I came up with a similar patch, but used the WP function
{{{addslashes_gpc()}}}, which automagically handles the server's
{{{magic_quotes_gpc}}} setting. I also added a conditional to add some
protection against mangled attachment IDs.
--
Ticket URL: <http://trac.wordpress.org/ticket/2434>
WordPress Trac <http://wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list