[FX.php List] FX/FM escaping quotes with a backslash?

Kevin Futter kfutter at sbc.melb.catholic.edu.au
Wed Apr 9 21:17:59 MDT 2008


Hi Folks,

I've hit a snag that I just can't figure out. On submitting a URL to a text
field in FM via FX, I'm finding that the quoted href path is being escaped.
For example, on submitting something like this:

<a href="http://www.mysite.com/">My Site</a>

It comes out as this in the database:

<a href=\"http://www.mysite.com/\">My Site</a>

It does the same thing to single quotes. The only thing I'm doing to the raw
POST data prior to submitting it is to run a function to remove smart quotes
and replace them with straight quotes (came from someone here I think).
While it doesn't add slashes anywhere, just for laughs I disabled it anyway
and it made no difference.

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.

Any ideas? 

-- 
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.


More information about the FX.php_List mailing list