summaryrefslogtreecommitdiff
path: root/modules/recaptcha/views
diff options
context:
space:
mode:
authorAndy Staudacher <andy.st@gmail.com>2009-09-01 01:28:52 -0700
committerAndy Staudacher <andy.st@gmail.com>2009-09-01 01:28:52 -0700
commit53711225ac9d116e72c159de943284fd55fe26e4 (patch)
treefa88f7786c2a5f30db2a12f8f601d4f55c5824d6 /modules/recaptcha/views
parent94c201f265c758fad38eb69c0a5878970119197a (diff)
XSS / style fixes for newly detected issues (after fixing XSS scanner)
Diffstat (limited to 'modules/recaptcha/views')
-rw-r--r--modules/recaptcha/views/admin_recaptcha.html.php4
-rw-r--r--modules/recaptcha/views/form_recaptcha.html.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/modules/recaptcha/views/admin_recaptcha.html.php b/modules/recaptcha/views/admin_recaptcha.html.php
index 43b4da8a..35722be4 100644
--- a/modules/recaptcha/views/admin_recaptcha.html.php
+++ b/modules/recaptcha/views/admin_recaptcha.html.php
@@ -4,7 +4,7 @@
<p>
<?= t("reCAPTCHA is a free CAPTCHA service that helps to digitize books, newspapers and old time radio shows. In order to use it, you need to sign up for a <a href=\"%domain_url\">reCAPTCHA Public/Private Key pair</a>, which is also free. Once registered, the challenge and response strings are evaluated at <a href=\"%recaptcha_url\">recaptcha.net</a> to determine if the form content has been entered by a bot.",
array("domain_url" => $form->get_key_url,
- "recaptcha_url" => "http://recaptcha.net")) ?>
+ "recaptcha_url" => html::mark_safe("http://recaptcha.net"))) ?>
</p>
<?= $form ?>
@@ -23,7 +23,7 @@
Recaptcha.create("<?= $public_key ?>", "gRecaptcha", {
callback: Recaptcha.focus_response_field,
lang: "en",
- custom_translations : { instructions_visual : "<?= t("Type words to check:") ?>"},
+ custom_translations : { instructions_visual : <?= t("Type words to check:")->for_js() ?>},
theme: "white"
});
</script>
diff --git a/modules/recaptcha/views/form_recaptcha.html.php b/modules/recaptcha/views/form_recaptcha.html.php
index d4031586..4ec04c49 100644
--- a/modules/recaptcha/views/form_recaptcha.html.php
+++ b/modules/recaptcha/views/form_recaptcha.html.php
@@ -8,7 +8,7 @@
"gRecaptcha",
{
theme: "white",
- custom_translations : { instructions_visual : "<?= t("Type words to check:") ?>"},
+ custom_translations : { instructions_visual : <?= t("Type words to check:")->for_js() ?>},
callback: Recaptcha.focus_response_field
}
);