• Resolved codejp3

    (@codejp3)


    Found a bug.

    In the “Honey Pot Error Message” settings field, I wrote a custom message that used the word “You’re”

    When I saved it, it refreshed with “You\’re”

    Hit save again, it refreshes with “You\\\\’re”

    Hit save again, it refreshes with “You\\\\\\’re”

    Hit save again, it refreshes with “You\\\\\\\\\’re”

    …and so on.

    Fixed it by changing /includes/wpa_functions.php line 32 to:

    		update_option('wpa_error_message',sanitize_text_field(stripslashes($_POST['wpa_error_message'])));
    

    stripslashes takes care of it.

    Cheers!

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Escape apostrophe problem in message field’ is closed to new replies.