Commit c7d9ee7f authored by Matija Obreza's avatar Matija Obreza
Browse files

reCAPTCHA on HTTPS needs to point to Google

parent 759a55d3
<%-- Bad, bad... Injecting scripts all over the HTTPS --%>
<script type="text/javascript" src="https://www.google.com/recaptcha/api/challenge?k=${captchaPublicKey}"></script>
<noscript>
<iframe src="http://www.google.com/recaptcha/api/noscript?k=${captchaPublicKey}" height="300" width="500" frameborder="0"></iframe><br>
<textarea name="recaptcha_challenge_field" rows="3" cols="40"></textarea>
<input type="hidden" name="recaptcha_response_field" value="manual_challenge">
</noscript>
\ No newline at end of file
......@@ -57,16 +57,7 @@
<div class="form-group">
<label class="col-lg-2 control-label"><spring:message code="captcha.text" /></label>
<div class="col-lg-3">
<script type="text/javascript" src="http://api.recaptcha.net/challenge?k=${captchaPublicKey}">
</script>
<noscript>
<iframe src="http://api.recaptcha.net/noscript?k=${captchaPublicKey}" height="300" width="500" frameborder="0"></iframe>
<br>
<textarea name="recaptcha_challenge_field" rows="3" cols="40">
</textarea>
<input type="hidden" name="recaptcha_response_field" value="manual_challenge">
</noscript>
<%@include file="/WEB-INF/jsp/recaptcha/here.jsp" %>
</div>
</div>
<div class="form-group">
......
......@@ -23,15 +23,7 @@
<div class="form-group">
<label class="col-lg-2 control-label"><spring:message code="captcha.text" /></label>
<div class="col-lg-3">
<script type="text/javascript" src="http://api.recaptcha.net/challenge?k=${captchaPublicKey}">
</script>
<noscript>
<iframe src="http://api.recaptcha.net/noscript?k=${captchaPublicKey}" height="300" width="500" frameborder="0"></iframe>
<br>
<textarea name="recaptcha_challenge_field" rows="3" cols="40"></textarea>
<input type="hidden" name="recaptcha_response_field" value="manual_challenge">
</noscript>
<%@include file="/WEB-INF/jsp/recaptcha/here.jsp" %>
</div>
</div>
<div class="form-actions">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment