diff --git a/modules/spamfilter/captcha/turnstile.php b/modules/spamfilter/captcha/turnstile.php index 6309041b4..41610705b 100644 --- a/modules/spamfilter/captcha/turnstile.php +++ b/modules/spamfilter/captcha/turnstile.php @@ -58,7 +58,7 @@ class Turnstile self::$scripts_added = true; Context::loadFile(array('./modules/spamfilter/tpl/js/turnstile.js', 'body')); Context::addHtmlFooter(''); - $html = '
'; + $html = ''; $html = sprintf($html, escape(self::$config->site_key), self::$config->theme ?: 'auto', self::$config->size ?: 'normal', implode(',', array_keys($this->_target_actions))); Context::addHtmlFooter($html); } diff --git a/modules/spamfilter/tpl/js/turnstile.js b/modules/spamfilter/tpl/js/turnstile.js index 655911ceb..39a7d4fbf 100644 --- a/modules/spamfilter/tpl/js/turnstile.js +++ b/modules/spamfilter/tpl/js/turnstile.js @@ -1,6 +1,6 @@ function turnstileCallback() { - var recaptcha_config = $("#recaptcha-config"); + var recaptcha_config = $("#turnstile-config"); var recaptcha_instances = $(".turnstile-captcha"); var recaptcha_instance_id = 1; var recaptcha_targets = String(recaptcha_config.data("targets")).split(",");