• Resolved cstarr27

    (@cstarr27)


    Hello!

    I was recently working on a client’s site that uses this plugin and I discovered a potential improvement.

    I found that if whitespace is accidentally added to the Webhook URL field, each line of whitespace is treated as a separate Webhook URL and an “A valid URL was not provided” exception is thrown which then causes a mail_failed error to be returned and the form to not submit.

    Until I dug into the plugin’s code and logged the exception’s message, I was confused as to what was going wrong.

    Since the accidental whitespace issue is pretty easy to miss, it may be worth skipping any empty webhook URLs at the beginning of the webhook loop in the wpcf7_mail_sent callback function.

    Thank you for your work on this plugin!

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Whitespace leading to empty webhook URLs’ is closed to new replies.