Problem/Motivation

A user on one of the sites I manage was trying to make a perfectly legit post where they were trying to describe a vehicle and use the word "windows" and the post was rejected for "win" which is one of the default patterns (and should be included in my opinion) as other forms like the contact form in the past has had spammers promoting win big, etc. etc. usually online gambling spam and one of the reasons I originally installed this module (when it was protected submissions).

I ended up just creating an additional role for the user to bypass protected forms in permissions - which isn't really that ideal considering the site it's being used on (categorized posts of items for sale and services listed)

Steps to reproduce

Install protected forms try submitting anything containing "window or windows" - you get rejected.

Proposed resolution

Make the regex pattern match checks to make sure the pattern isn't a partial word/string.

I don't know if the partial string match was by design (but I'm calling it a bug) I assumed "but probably shouldn't have" it would check against an entire string not parts of strings.

I've attached an image of the log report showing this...

CommentFileSizeAuthor
windows-rejected-by-win.jpg923.73 KBsidgrafix

Comments

sidgrafix created an issue. See original summary.

altagrade’s picture

Status: Active » Fixed

With the newly introduced Allowed patterns options you can protect the professional jargon of your website from validation. Give to the latest dev a try.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.