Support » Plugin: Redirection for Contact Form 7 » Does not sanitise js, so can’t handle {}

  • Resolved funsail

    (@funsail)


    If you type in the Redirect Settings under ‘Here you can add scripts to run after form sent successfully. ‘

    if (1==3) {
       alert('sent ok9');
    } 

    Then when you save the form it gets a 403. Don’t put any other settings in the whole tab.

    It’s easy, just put in

    if (1==3) { alert('sent ok9'); } to your form with nothing else

    Please check: https://wordpress.org/support/topic/please-read-before-asking/

    • This topic was modified 8 months, 1 week ago by funsail.
Viewing 1 replies (of 1 total)
  • Plugin Author yuvalsabar

    (@yuvalsabar)

    Hi @funsail,

    Is this a question?

    You can put any js code. It will work fine. We had some sanitization problems in the past, but we fixed it in version 1.2.7.

Viewing 1 replies (of 1 total)
  • The topic ‘Does not sanitise js, so can’t handle {}’ is closed to new replies.