Skip to content

Commit

Permalink
Prevent XSS through dashboard grid items id
Browse files Browse the repository at this point in the history
  • Loading branch information
cedric-anne authored and trasher committed Apr 5, 2023
1 parent 965f18b commit 53f2674
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Dashboard/Grid.php
Expand Up @@ -620,6 +620,8 @@ public function addGridItem(
$edit_label = __("Edit this card");
$delete_label = __("Delete this card");

$gridstack_id = htmlspecialchars($gridstack_id);

$this->items[] = <<<HTML
<div class="grid-stack-item"
gs-id="{$gridstack_id}"
Expand Down

0 comments on commit 53f2674

Please sign in to comment.