Skip to content

Commit 7ee1b66

Browse files
authored
Merge pull request #50 from madapaja/add-psalm-taint-annotations
Add Psalm taint annotations for XSS prevention
2 parents 55fbbed + 9fcb166 commit 7ee1b66

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/ErrorPagerRenderer.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ public function __construct(
2828
* @throws LoaderError
2929
* @throws RuntimeError
3030
* @throws SyntaxError
31+
*
32+
* @psalm-taint-escape html
3133
*/
3234
public function render(ResourceObject $ro): string
3335
{

src/TwigRenderer.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ public function __construct(
4141

4242
/**
4343
* {@inheritDoc}
44+
*
45+
* @psalm-taint-escape html
4446
*/
4547
public function render(ResourceObject $ro)
4648
{

0 commit comments

Comments
 (0)