Fix stored XSS in gcaptcha_site_key on login page

This commit is contained in:
Ollama
2026-03-14 15:30:52 +00:00
committed by jekkos
parent 7cb1d95da7
commit 48af67bd00

View File

@@ -92,7 +92,7 @@
<?php
if ($gcaptcha_enabled) {
echo '<script src="https://www.google.com/recaptcha/api.js"></script>';
echo '<div class="g-recaptcha mb-3" style="text-align: center;" data-sitekey="' . $config['gcaptcha_site_key'] . '"></div>';
echo '<div class="g-recaptcha mb-3" style="text-align: center;" data-sitekey="' . esc($config['gcaptcha_site_key']) . '"></div>';
}
?>
<div class="d-grid">