The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Sweet Captcha
Seems to bite the output of Plugin "WP Mailto Links" (2 posts)

  1. Tim Reeves
    Posted 2 years ago #


    I'm having a problem when an E-Mail link appears in the right sidebar and is thus (in the html text) after a contact form (CF7) protected by SweetCaptcha. An E-Mail on the page before the form is protected correctly; but the subsequent one in the sidebar gets "mangled".

    Without SweetCaptcha:
    <a href=";" title="Senden Sie mir eine E-Mail"><span class="wpml-rtl">ue.si<span class="wpml-nodis">1400506671</span>xarp-<span class="wpml-nodis">1400506671</span>ph@ml<span class="wpml-nodis">1400506671</span>ehliw<span class="wpml-nodis">1400506671</span>.snah<span class="wpml-nodis">1400506671</span></span></a>

    With SweetCaptcha:
    <a href=";" title="Senden Sie mir eine E-Mail"><span class="wpml-rtl">ue.si<span class="wpml-nodis">1400506292</span>xarp-<span class="wpml-nodis">1400506292</span>ph@ml<span class="wpml-nodis">1400506292</span>ehliw<span class="wpml-nodis">1400506292</span>.snah<span class="wpml-nodis">1400506292</span></span>`

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum's parser.]

    I'm not certain what's actually going on here, but it seems reproducible. The site in question is in development, here.

    Any insights would be appreciated!



  2. Tim Reeves
    Posted 2 years ago #

    The author of "WP Mailto Links" has found the problem, he says it is caused by the JavaScript generated by SweetCaptcha using single quotes. He also says he has no quick fix for the problem.

    I had a look at the page generated, and rather assume that he means this sort of thing:

    <script>new SWEETCAPTCHA('sc_XXXXXX', '//www.sweetcaptcha.com/api/v2/apps/49501/captcha/sc_XXXXXX?auto_submit=false').generate()</script>

    So, since he has no quick fix, would it be possible for SweetCaptcha to use only double quotes (I don't see why not, and that may in general make life easier for other plugins)?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic