This repository was archived by the owner on Apr 21, 2026. It is now read-only.
Commit e78e089
fix: XSS in flash messages, hardcoded user ID, missing semicolon, dead code
- Escape flash messages with jsStringFormat() before embedding in JS string
(layout.cfm:617) to prevent XSS via single quotes in flash content
- Replace hardcoded updatedBy=1 with GetSignedInUserId() in blog deletion
- Add missing semicolon after return in unpublishBlog()
- Remove unused getAll() and no-op logBlogRequest() dead code
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent d3bb47a commit e78e089
2 files changed
Lines changed: 3 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | 27 | | |
31 | 28 | | |
32 | 29 | | |
| |||
63 | 60 | | |
64 | 61 | | |
65 | 62 | | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | 63 | | |
71 | 64 | | |
72 | 65 | | |
| |||
809 | 802 | | |
810 | 803 | | |
811 | 804 | | |
812 | | - | |
813 | | - | |
814 | | - | |
815 | | - | |
816 | 805 | | |
817 | 806 | | |
818 | 807 | | |
| |||
1029 | 1018 | | |
1030 | 1019 | | |
1031 | 1020 | | |
1032 | | - | |
| 1021 | + | |
1033 | 1022 | | |
1034 | 1023 | | |
1035 | 1024 | | |
| |||
1195 | 1184 | | |
1196 | 1185 | | |
1197 | 1186 | | |
1198 | | - | |
| 1187 | + | |
1199 | 1188 | | |
1200 | 1189 | | |
1201 | 1190 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
614 | 614 | | |
615 | 615 | | |
616 | 616 | | |
617 | | - | |
| 617 | + | |
618 | 618 | | |
619 | 619 | | |
620 | 620 | | |
| |||
0 commit comments