From 165498206182c5e84a66521789e9939615b70ded Mon Sep 17 00:00:00 2001
From: Daniel Hart | ALifeInArtifyAI
<238904666+projectedanx@users.noreply.github.com>
Date: Tue, 7 Jul 2026 00:24:44 +1000
Subject: [PATCH 1/3] Potential fix for code scanning alert no. 6: Unsafe HTML
constructed from library input
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Signed-off-by: Daniel Hart | ALifeInArtifyAI <238904666+projectedanx@users.noreply.github.com>
---
js/jquery.cal.js | 40 +++++++++++++++++++++++++++++++---------
1 file changed, 31 insertions(+), 9 deletions(-)
diff --git a/js/jquery.cal.js b/js/jquery.cal.js
index 16c94f5b2..fc5a20651 100644
--- a/js/jquery.cal.js
+++ b/js/jquery.cal.js
@@ -84,18 +84,40 @@
table.append('
');
// month select field
- var monthselect = '';
+ var monthselect = jQuery('');
+ for (var i in l10n_cal_month) {
+ monthselect.append(jQuery('').val(i).text(l10n_cal_month[i]));
+ }
// year select field
- var yearselect = '';
+ var yearselect = jQuery('');
+ for (var i in years) {
+ yearselect.append(jQuery('').text(years[i]));
+ }
- jQuery("thead",table).append('