Not sending from mobile because of “iPhone” in your list of banned words
-
I struggled with this for the better part of a day, eventually reverse engineering your code to figure out why the contact form was sending just fine from desktop but not from mobile. I traced it to the fact that you are checking wp_options table item for “blacklist_keys”. On that list is the word “iPhone” which is ALWAYS going to be present in any form info submitted from an iPhone because you are ALSO SENDING THE BROWSER IDENTIFICATION along with your blacklist check:
Mozilla/5.0 (iPhone; CPU iPhone OS 11_2_6 like Mac OS X) AppleWebKit/604.5.6 (KHTML, like Gecko) Version/11.0 Mobile/15D100 Safari/604.1
Because it runs this along with all the other data through your bad words list, it ALWAYS fails on an iPhone. Posting here so that you will fix it and hopefully save other people that massive headache this caused me.
- The topic ‘Not sending from mobile because of “iPhone” in your list of banned words’ is closed to new replies.