[FX.php List] FX/FM escaping quotes with a backslash?
Dale Bengston
dbengston at preservationstudio.com
Thu Apr 10 11:26:32 MDT 2008
We ran into something similar a few weeks back, where different server
configs would place different variants of \" and \' in MySQL database
fields via FX.php (although FX wasn't causing the problem). We started
trapping the server settings, thusly and removing slashes accordingly.
We're looking at the value of get_magic_quotes_gpc().
http://us.php.net/manual/en/function.get-magic-quotes-gpc.php
Hope this helps,
Dale
On Apr 9, 2008, at 11:22 PM, Kevin Futter wrote:
> On 10/04/08 1:39 PM, "Tim 'Webko' Booth" <tim at nicheit.com.au> wrote:
>
>>>
>>> I've been all over my code and I can't find anything that's doing
>>> this, so
>>> I'm assuming it's either FX (not likely) or FM's XML interface. If
>>> it's the
>>> latter, the only thing I can think of is that the submitting page is
>>> encoded
>>> as ISO-8859-1 rather than UTF-8, and FM is 'handling' that by
>>> escaping
>>> non-ASCII characters. An educated but rather wild guess, really.
>>
>> I've had this occur every now and again, but never delved too deeply
>> into why - the places it happened were my own testing pages, so I
>> basically ignored it ;-)
>>
>> Maybe you could apply a stripslashes to it before inserting and see
>> if
>> that makes a difference?
>>
>> Cheers
>>
>> Webko
>
> Thanks Tim. Just gave it a go but it made no difference. This more-
> or-less
> confirms for me that it's not FX or PHP doing it, but rather,
> something on
> the FM side - most likely the XML interface. Luckily it's only an
> internal
> page that us technical staff use, so it's no biggie from that
> perspective,
> but I'm still stumped about the 'why'.
>
> --
> Kevin Futter
> Webmaster, St. Bernard's College
> http://www.sbc.melb.catholic.edu.au/
>
>
> #####################################################################################
> This e-mail message has been scanned for Viruses and Content and
> cleared
> by MailMarshal
> #####################################################################################
>
> This e-mail and any attachments may be confidential. You must not
> disclose or use the information in this e-mail if you are not the
> intended recipient. If you have received this e-mail in error,
> please notify us immediately and delete the e-mail and all copies.
> The College does not guarantee that this e-mail is virus or error
> free. The attached files are provided and may only be used on the
> basis that the user assumes all responsibility for any loss, damage
> or consequence resulting directly or indirectly from the use of the
> attached files, whether caused by the negligence of the sender or
> not. The content and opinions in this e-mail are not necessarily
> those of the College.
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
More information about the FX.php_List
mailing list