libreoffice-online/browser/css
Skyler Grey 81497efd55 Replace innerHTML with innerText
Previously we were using innerHTML to insert user-generated content
(usernames) into the document. While we were sanitizing these correctly,
it was hard to tell that we were and required a level of knowledge about
what was kept where (e.g. were we getting the usernames from the
sanitized cache or from an unsanitized event?)

By replacing innerHTML with innerText, this commit removes the risk of
someone making a mistake like using the wrong variable and introducing
XSS. It also makes the code more obviously secure

Unfortunately, w2overlay doesn't support using any property that is not
"html" to provide a message, so we can't directly use innerText. For now
I'll move the sanitization process directly above where we set the
message to make it obvious, but for this reason (and typescript) we
should consider replacing w2overlay in the near future

Signed-off-by: Skyler Grey <skyler.grey@collabora.com>
Change-Id: If935dc2d765dd5e345ce760cad88386ea98d97b4
2024-02-28 16:07:22 +01:00
..
btns.css jsdialog: css: improve disabled widgets 2024-02-14 13:16:58 +01:00
color-palette-dark.css
color-palette.css
cool.css cypress: replace incorrect class name checking 2024-02-24 17:23:14 +05:30
device-desktop.css
device-mobile.css Mobile: Resolve issue where busy popup covers the whole document 2024-01-15 09:35:55 +01:00
device-tablet.css
editor.css
iframedialog.css browser: css: fix focus outline dialog container 2024-01-18 21:37:46 +01:00
impress-mobile.css
impress.css
infobar.css
jquery-ui-lightness.css ui-tooltip: don't inherit the same shadow values as regular overlays 2024-02-23 11:18:12 +01:00
jsdialogs.css Keyboard shortcuts dialog: don't allow width to change after opened 2024-02-24 08:09:55 +01:00
jssidebar.css fix:navigator hyperlinks line-breaking on chrome and firefox 2023-11-24 10:21:09 +05:30
leaflet-spinner.css
leaflet.css
menubar.css Add loading indicator for document title saving 2024-02-07 13:09:13 +01:00
mobilewizard.css jsdialog: handle disable action on mobile 2024-02-13 13:46:22 +00:00
notebookbar.css Notebookbar: remove inline buttons' float and set it to grid (css) 2024-01-30 07:17:32 +01:00
override-smartmenus.css
override-vex.css
partsPreviewControl.css
searchControl.css
selectionMarkers.css
sidebar.css
spreadsheet.css calc: Receive the sheet protected status 2024-02-14 14:05:56 +00:00
toolbar.css Replace innerHTML with innerText 2024-02-28 16:07:22 +01:00
w2ui-1.5.rc1.css
welcome.css
writer-mobile.css
writer.css Fix Content control "down arrow" cannot be recognized in dark mode 2023-11-09 11:19:54 +05:30