WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form DB
[Plugin: Contact Form 7 to Database Extension] Stripslashes (2 posts)

  1. pmagony
    Member
    Posted 3 years ago #

    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.

  2. Michael Simpson
    Member
    Plugin Author

    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic