mirror of
https://gitgud.io/fatchan/haproxy-protection.git
synced 2025-05-09 02:05:37 +00:00
Escape first %s in string format, no need to template in %s...
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user