Skip to content

Commit

Permalink
[HOTFIX] Escaping vulnerable text when modal opens (apache#4795)
Browse files Browse the repository at this point in the history
(cherry picked from commit 25b6001)
  • Loading branch information
Henry-Hong authored and jongyoul committed Aug 18, 2024
1 parent 0019bdb commit b8adb0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zeppelin-web/src/app/helium/helium.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,10 +240,10 @@ export default function HeliumCtrl($scope, $rootScope, $sce,
`<div style="color:gray">${getHeliumTypeText(type)}</div>` +
'<hr style="margin-top: 10px; margin-bottom: 10px;" />' +
'<div style="font-size: 14px;">Description</div>' +
`<div style="color:gray">${description}</div>` +
`<div style="color:gray">${_.escape(description)}</div>` +
'<hr style="margin-top: 10px; margin-bottom: 10px;" />' +
'<div style="font-size: 14px;">License</div>' +
`<div style="color:gray">${license}</div>`,
`<div style="color:gray">${_.escape(license)}</div>`,
callback: function(result) {
if (result) {
confirm.$modalFooter.find('button').addClass('disabled');
Expand Down

0 comments on commit b8adb0a

Please sign in to comment.