diff --git a/sqli/static/js/materialize.js b/sqli/static/js/materialize.js
index bbd91bea..8edc7cdd 100644
--- a/sqli/static/js/materialize.js
+++ b/sqli/static/js/materialize.js
@@ -393,7 +393,11 @@ jQuery.Velocity ? console.log("Velocity is already loaded. You may be needlessly
}var f,
d = function () {
if (r.documentMode) return r.documentMode;for (var e = 7; e > 4; e--) {
- var t = r.createElement("div");if (t.innerHTML = "", t.getElementsByTagName("span").length) return t = null, e;
+ var t = r.createElement("div");
+ // Ensure e is a valid number between 4-11 (common IE versions)
+ if (typeof e !== 'number' || e < 4 || e > 11) return a;
+ t.textContent = "";
+ if (t.getElementsByTagName("span").length) return t = null, e;
}return a;
}(),
g = function () {
@@ -803,7 +807,7 @@ jQuery.Velocity ? console.log("Velocity is already loaded. You may be needlessly
var e;if (a) if (a.forEach) a.forEach(b, c);else if (a.length !== d) for (e = 0; e < a.length;) {
b.call(c, a[e], e, a), e++;
} else for (e in a) {
- a.hasOwnProperty(e) && b.call(c, a[e], e, a);
+ Object.prototype.hasOwnProperty.call(a, e) && b.call(c, a[e], e, a);
}
}function n(a, b, c) {
for (var e = Object.keys(b), f = 0; f < e.length;) {
@@ -1023,7 +1027,9 @@ jQuery.Velocity ? console.log("Velocity is already loaded. You may be needlessly
vb = "pointermove pointerup pointercancel";a.MSPointerEvent && (ub = "MSPointerDown", vb = "MSPointerMove MSPointerUp MSPointerCancel"), p(wb, ab, { handler: function (a) {
var b = this.store,
c = !1,
- d = a.type.toLowerCase().replace("ms", ""),
+ d = a.type.split(" ").map(function(word) {
+ return word.replace(/^MSPointer/i, "pointer").toLowerCase();
+ }).join(" "),
e = sb[d],
f = tb[a.pointerType] || a.pointerType,
g = f == J,
@@ -2847,7 +2853,22 @@ if (jQuery) {
// Create Text span
if (allowHtml) {
- tooltipText = $('').html(tooltipText);
+ // Sanitize HTML content to prevent XSS
+ var sanitizeHTML = function(html) {
+ var div = document.createElement('div');
+ div.textContent = html;
+ // Only allow safe tags and attributes
+ var sanitized = div.innerHTML
+ .replace(/