Escape first %s in string format, no need to template in %s...

This commit is contained in:
Thomas Lynch
2024-09-17 21:15:59 +10:00
parent 89ff3637d4
commit f9a3798edb

View File

@ -114,12 +114,12 @@ else
end end
_M.captcha_section = string.format([[ _M.captcha_section = string.format([[
<span> <span>
%s %%s
</span> </span>
<div id="captcha" class="jsonly"> <div id="captcha" class="jsonly">
<div class="%s" data-sitekey="%s" data-callback="onCaptchaSubmit"></div> <div class="%s" data-sitekey="%s" data-callback="onCaptchaSubmit"></div>
<script src="%s" async defer></script> <script src="%s" async defer></script>
</div> </div>
]], "%s", captcha_classname, captcha_sitekey, captcha_script_src) ]], captcha_classname, captcha_sitekey, captcha_script_src)
return _M return _M