`|encodeJS` requires the value to be marked with `unsafe:`
authorAlexander Ebert <ebert@woltlab.com>
Thu, 2 Jan 2025 15:29:23 +0000 (16:29 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 2 Jan 2025 15:29:23 +0000 (16:29 +0100)
com.woltlab.wcf/templates/shared_recaptcha.tpl

index cc7d693b3bfdeb6029852ccb335f137e208c31df..be49272bbfbaf06dd9a99d6080513dc07523e6d2 100644 (file)
@@ -42,7 +42,7 @@
                </dl>
                <script data-relocate="true">
                        require(['WoltLabSuite/Core/Component/Captcha/Recaptcha'], ({ Recaptcha }) => {
-                               new Recaptcha('{$recaptchaType}', '{$recaptchaPublicKey|encodeJS}', 'recaptchaBucket{$recaptchaBucketID}'{if $ajaxCaptcha}, '{$captchaID|encodeJS}'{/if});
+                               new Recaptcha('{$recaptchaType}', '{unsafe:$recaptchaPublicKey|encodeJS}', 'recaptchaBucket{$recaptchaBucketID}'{if $ajaxCaptcha}, '{unsafe:$captchaID|encodeJS}'{/if});
                        });
                </script>
        {/if}