mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-09 17:52:32 +08:00
fix(setup): use safer text
method instead of html to prevent possible XSS
see also https://api.jquery.com/html/ under "Additional Notes": "Do not use these methods to insert strings obtained from untrusted sources such as URL query parameters, cookies, or form inputs. Doing so can introduce cross-site-scripting (XSS) vulnerabilities. Remove or escape any user input before adding content to the document. " fixes #1072
This commit is contained in:
parent
ed33b72f57
commit
c9c8ee5556
@ -110,7 +110,7 @@ async function checkOutstandingSyncs() {
|
||||
}
|
||||
|
||||
function showAlert(message: string) {
|
||||
$("#alert").html(message);
|
||||
$("#alert").text(message);
|
||||
$("#alert").show();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user