Skip to content

Commit

Permalink
[SECURITY-3280] Address XSS by removing some inline Jelly in JS (#951)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Beck <daniel-beck@users.noreply.github.com>
  • Loading branch information
daniel-beck and daniel-beck authored May 3, 2024
1 parent 3f172f2 commit 2162064
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
<body class="build-monitor dashboard industrial"
data-ng-app="buildMonitor"
data-ng-controller="JobViews"
data-display-name="${it.displayName}"
data-ng-class="{ 'colour-blind-mode': settings.colourBlind == 1, 'reduce-motion-mode': settings.reduceMotion == 1 }">

<header>
Expand Down Expand Up @@ -198,7 +199,7 @@
proxyProvider.configureProxiesUsing(window.bindings);

cookieJarProvider.describe({
label: 'buildMonitor.' + hashCodeOf('${it.displayName}'),
label: 'buildMonitor.' + hashCodeOf(document.body.dataset.displayName),
shelfLife: 365
});
});
Expand Down

0 comments on commit 2162064

Please sign in to comment.