summaryrefslogtreecommitdiff
path: root/resources/views/captcha.phtml
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2021-10-29 16:27:37 +0100
committerGreg Roach <greg@subaqua.co.uk>2021-10-29 16:27:37 +0100
commit728c8c2714cc197d45bad7363eb52e0bff3297bb (patch)
treec895f6e4830b6c73cdee439c5614724ba0af474a /resources/views/captcha.phtml
parent41acc92b0fa7f1cfb293f47f77a9b2aaf668b765 (diff)
downloadwebtrees-728c8c2714cc197d45bad7363eb52e0bff3297bb.tar.gz
webtrees-728c8c2714cc197d45bad7363eb52e0bff3297bb.tar.bz2
webtrees-728c8c2714cc197d45bad7363eb52e0bff3297bb.zip
CodeStyle: use JSON_THROW_ON_ERROR with json_encode()
Diffstat (limited to 'resources/views/captcha.phtml')
-rw-r--r--resources/views/captcha.phtml2
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/views/captcha.phtml b/resources/views/captcha.phtml
index cc0db8b8d4..99333bba2a 100644
--- a/resources/views/captcha.phtml
+++ b/resources/views/captcha.phtml
@@ -11,5 +11,5 @@
<input type="text" name="<?= e($y) ?>" class="d-none" aria-label="field2" value="<?= e($z) ?>">
<script>
- document.getElementsByName(<?= json_encode($x) ?>)[0].value = document.getElementsByName(<?= json_encode($y) ?>)[0].value;
+ document.getElementsByName(<?= json_encode($x, JSON_THROW_ON_ERROR) ?>)[0].value = document.getElementsByName(<?= json_encode($y, JSON_THROW_ON_ERROR) ?>)[0].value;
</script>