mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-10-14 01:42:21 -04:00
fix(security): Escape theme variable in login page
Escape configured language in settings page
This commit is contained in:
1 parent
6342d4513a
commit
4335c1563e
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -32,7 +32,7 @@ $request = Services::request();
|
||||
? 'flatly'
|
||||
: $config['theme']);
|
||||
?>
|
||||
<link rel="stylesheet" href="resources/bootswatch5/<?= "$theme" ?>/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="resources/bootswatch5/<?= esc("$theme") ?>/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="css/login.css">
|
||||
<meta name="theme-color" content="#2c3e50">
|
||||
</head>
|
||||
|
||||
@@ -25,7 +25,7 @@ var pickerconfig = function(config) {
|
||||
}, <?php echo isset($config) ?>);
|
||||
};
|
||||
|
||||
$.fn.datetimepicker.dates['<?= $config['language'] ?>'] = {
|
||||
$.fn.datetimepicker.dates['<?= esc($config['language']) ?>'] = {
|
||||
days: [
|
||||
"<?= lang('Calendar.sunday') ?>",
|
||||
"<?= lang('Calendar.monday') ?>",
|
||||
|
||||
Reference in new issue
Block a user