mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-10-01 18:25:06 -04:00
Implement XSS prevention by encoding special characters in device names across multiple files
This commit is contained in:
1 parent
6580c4a953
commit
5f62d25e23
13 files changed
+439
-64
No files matched your search
@@ -251,7 +251,7 @@
|
||||
$select.append(
|
||||
devicesList
|
||||
.filter(d => d.devMac && d.devName)
|
||||
.map(d => `<option value="${d.devMac}">${d.devName}</option>`)
|
||||
.map(d => `<option value="${d.devMac}">${encodeSpecialChars(d.devName)}</option>`)
|
||||
.join('')
|
||||
).trigger('change');
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user