Skip to content

Commit 107d430

Browse files
committed
fix(bazar): no html in template parameter
1 parent e260317 commit 107d430

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tools/bazar/actions/BazarListeAction.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ public function formatArguments($arg)
7676
}
7777

7878
$template = $_GET['template'] ?? $arg['template'] ?? null;
79-
79+
if ($template) {
80+
$template = htmlspecialchars($template);
81+
}
8082
// Dynamic templates
8183
$dynamic = $this->formatBoolean($arg, false, 'dynamic');
8284

0 commit comments

Comments
 (0)