Fix SQL injection in FCKeditor caused by
r50683
Never, ever, ever try to use str_replace() for database-related
escaping. There are functions provided for this for good reason.
Not tested except for PHP syntax, since I don't have the extension
installed.