• Resolved Stephen S

    (@ssuess)


    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.

    • This topic was modified 6 years, 8 months ago by Stephen S.
    • This topic was modified 6 years, 8 months ago by Stephen S.
    • This topic was modified 6 years, 8 months ago by Stephen S.
    • This topic was modified 6 years, 8 months ago by Stephen S.
Viewing 1 replies (of 1 total)
  • The “blacklist_keys” field in wp_options table is empty, but the contact form still does not send anything from mobile, i.e. iPhone.
    Should it be anything in the the “blacklist_keys” field at all or what else to be added?
    Thanks

Viewing 1 replies (of 1 total)
  • The topic ‘Not sending from mobile because of “iPhone” in your list of banned words’ is closed to new replies.