• Resolved manakuke

    (@manakuke)


    When a user on the front end submits data in a text field, either by typing or copying pasting from Word, any text after a greater or less than symbol immediately followed by a number gets dropped. For example,

    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. <2 Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

    Everything after the “<2” gets dropped and not saved into the database. If it is typed as “< 2” (including a space between the symbol and the number, it inserts the contents in its entirety.

    http://studentaffairs.lasalle.edu/servicescholars/

    http://wordpress.org/plugins/wordpress-form-manager/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author hoffcamp

    (@hoffcamp)

    What is happening is the <2 and following content is being stripped as an HTML tag (see under Forms > Advanced Settings > Content Filtering). I’m not sure how to fix this, since the tag stripping works via a whitelist of allowed tags, instead of specifically blocking tags.

    Plugin Author hoffcamp

    (@hoffcamp)

    There is a solution, and I’ll include it into the next release. For now, you can replace line 369 of helpers.php with:

    return htmlspecialchars($str);

    Instead of stripping tags from input, it will include their literal text. I’ll add this as an optional behavior in the next version.

    Thread Starter manakuke

    (@manakuke)

    Thank you. This helps very much!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Text Field Dropping Partial Data’ is closed to new replies.