ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Backslash escapes added to form data

October 27, 2010 6:53pm

Subscribe [3]
  • #1 / Oct 27, 2010 6:53pm

    Michael Prell

    39 posts

    I have a situation where I needed to create a custom PHP contact form within an EE template. When form data is processed, quotes and double quotes are being escaped with a backslash. I don’t think it’s a server issue; magic quotes are turned off and I also have a function in the PHP that should remove backslashes. So I’m wondering if EE is doing this and, if so, is there anything I can do to stop it?

    This is on EE version 1.6.2 - I know that it should be upgraded, but that’s the situation.

  • #2 / Oct 28, 2010 8:50am

    Sue Crocker

    26054 posts

    Why not download a copy of Solspace’s Freeform Module? See if that does the same thing. I use Freeform on just about every project I do that requires a form.

  • #3 / Oct 28, 2010 9:11am

    Michael Prell

    39 posts

    Yes, I’ve used Freeform as well - even on this site - but I needed a particular functionality that isn’t available in the version I’m using. Everything is built and working as planned, I just have these confounded backslashes inserted into my data. Again, my current theory is that EE is doing this. I’m just looking to confirm or deny.

  • #4 / Oct 28, 2010 10:37am

    Sue Crocker

    26054 posts

    Does the same code on a regular .php page have the same issue?

  • #5 / Oct 28, 2010 10:51am

    Michael Prell

    39 posts

    No.

  • #6 / Oct 28, 2010 9:30pm

    Brandon Jones

    5500 posts

    Hi Michael,

    This is going to be tough to troubleshoot since you’re on such an old version. One thing I’d check, though: Are you using word censoring, and is there an empty line at the end of the word censor list?

    If that’s not it, I’d strongly suggest upgrading so we can ensure you’ve got a fresh set of files.

  • #7 / Oct 29, 2010 11:02am

    Michael Prell

    39 posts

    I understand, unfortunately upgrading is not an option for now. I was hoping this might set off a light bulb and someone would know what the problem is, but I don’t expect a lot of effort troubleshooting a 1.6.2 issue. Thought it might be worth a shot.

  • #8 / Oct 29, 2010 4:24pm

    Sue Crocker

    26054 posts

    If you have a way of fixing this with PHP, then I’d certainly do so. Or if you are displaying the data with EE, one of the search and replace plugins should work to get rid of the slashes.

    Does that help?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases