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
|
||||
_M.captcha_section = string.format([[
|
||||
<span>
|
||||
%s
|
||||
%%s
|
||||
</span>
|
||||
<div id="captcha" class="jsonly">
|
||||
<div class="%s" data-sitekey="%s" data-callback="onCaptchaSubmit"></div>
|
||||
<script src="%s" async defer></script>
|
||||
</div>
|
||||
]], "%s", captcha_classname, captcha_sitekey, captcha_script_src)
|
||||
]], captcha_classname, captcha_sitekey, captcha_script_src)
|
||||
|
||||
return _M
|
||||
|
Reference in New Issue
Block a user