Support » Plugin: Contact Form DB » [Plugin: Contact Form 7 to Database Extension] Stripslashes

  • I’m not sure why this is occurring, however, I’ve created a testimonial form using Contact Form 7 with the Database Extension plugin to submit user testimonials.

    On two fields (text area for the body of the testimonial and general text field), slashes are not being stripped. The output on the site is showing a backslash on apostrophes.

    Line breaks are also not coming through either. Whereas, there should be spacing between the paragraphs, the text appears in one large group.

    If anyone can help troubleshoot this, I would greatly appreciate it.

Viewing 1 replies (of 1 total)
  • Plugin Author Michael Simpson


    1. on slashes, the form submission names and values are being sent through a stripslashes($text) call *if* get_magic_quotes_gpc() is true. Is is possible that you have a php.ini file that turns off magic_quotes_gpc?

    2. If you are looking at the input text in the admin panel, this is treated as HTML text. That means that all sequences of whitespace (spaces, newlines, tabs) are condensed to one space. But your submitted whitespaces should still be there. If you were to display a submission using the [cfdb-html] tag, and wrap the value in a
    “pre” tag, then I would expect you see see the same formatting, i.e.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Contact Form 7 to Database Extension] Stripslashes’ is closed to new replies.