fix(shared-folder): sanitize gallery rendering to avoid innerHTML and resolve CodeQL warning (fixes #27)

This commit is contained in:
Ryan
2025-04-27 18:28:39 -04:00
committed by GitHub
parent 76f5ed5c96
commit 0334e443eb
2 changed files with 57 additions and 26 deletions

View File

@@ -19,6 +19,7 @@
- Added `.toggle-btn` CSS for blue header-style toggle button and applied it in JS
- Added `.pagination a:hover { background-color: #0056b3; }` to match button hover
- Tweaked `body` padding and `header h1` margins to reduce whitespace above header
- Refactored `sharedFolderView.js:renderGalleryView()` to eliminate `innerHTML` usage; now uses `document.createElement` and `textContent` so filenames and URLs are fully escaped and CSP-safe
---