mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-03-26 02:43:03 -04:00
Fix stored XSS in gcaptcha_site_key on login page
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user