Gossamer Forum
Home : Products : Links 2.0 : Customization :

Problem with add_confirm

Quote Reply
Problem with add_confirm
I had someone try and post a site today with a description that had quotation marks in it. When they click on confirm it took them to the add_confirm template that had the html over-written due to the quotation marks. All the html, after the " in the form was deleted. Is there any way to get around this, other than putting a message not to use quotation marks in the submission?

Jimmy Crow
http://www.homewithgod.com/
Quote Reply
Re: Problem with add_confirm In reply to
Try putting the following regular expression in the sub site_html_add_confirm routine:

Code:

$in{'Description'} =~ s/\"//g;


I don't gaurantee this will work...but this is the approach you will have to take in order to not have text deleted.

Regards,

Eliot Lee
Quote Reply
Re: Problem with add_confirm In reply to
It worked perfectly! Everyone might want to consider adding this code. I would have never known about the problem, if the submitter hadn't emailed me.

As always, Eliot your help is greatly appreciated.

Jimmy Crow
http://www.homewithgod.com/
Quote Reply
Re: Problem with add_confirm In reply to
Glad it worked...and I think that may have been a problem with my Postcard script (using Send Link v2.0)...I actually sent my mother a postcard from my Virtual Postcard Center and to my embarrassment half of the message was deleted and I believe it was because I added double quotes in the Message (Description) field.

Regards,

Eliot Lee