Commit 9fcb166
Add Psalm taint annotations for XSS prevention
This commit adds Psalm taint escape annotations for HTML security:
- TwigRenderer::render: marks Twig rendering as HTML escape
- ErrorPagerRenderer::render: marks error page rendering as HTML escape
Twig's autoescape feature automatically escapes HTML entities in
template output, making these methods safe sinks for HTML-tainted data.1 parent 55fbbed commit 9fcb166
2 files changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
| |||
0 commit comments