Skip to content

Commit

Permalink
fix: [security] Stored XSS when forking a galaxy cluster
Browse files Browse the repository at this point in the history
As reported by Giuseppe Diego Gianni
  • Loading branch information
mokaddem committed Jul 26, 2021
1 parent a2f18fd commit 78edbbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/View/GalaxyClusters/add.ctp
Expand Up @@ -5,7 +5,7 @@
if (isset($forkedClusterMeta)) {
foreach ($forkedClusterMeta as $key => $value) {
if (is_array($value)) {
$forkedClusterHtmlPreview .= sprintf('<div><b>%s: </b><div data-toggle="json" class="large-left-margin">%s</div></div>', h($key), json_encode($value));
$forkedClusterHtmlPreview .= sprintf('<div><b>%s: </b><div data-toggle="json" class="large-left-margin">%s</div></div>', h($key), json_encode(h($value)));
} else {
$forkedClusterHtmlPreview .= sprintf('<div><b>%s: </b>%s</div>', h($key), h($value));
}
Expand Down

0 comments on commit 78edbbc

Please sign in to comment.