rocklobster-in / contact-form-7

Contact Form 7 - Just another contact form plugin for WordPress.
Other
292 stars 145 forks source link

Normalize newlines before enum validation #1512

Closed takayukister closed 1 week ago

takayukister commented 1 week ago

Related forum topic: https://wordpress.org/support/topic/contact-form-7-v6-0-long-checkbox-label-text-issue/

In some cases, a user-submitted string value includes newlines, and the newline appears as \r\n in the $_POST, not \n. This is a tiny difference, but causes incorrect enum validation.