Merge pull request #3116 from quay/brackets-in-labels

Fix display of brackets in the labels view
This commit is contained in:
Joseph Schorr 2018-06-14 12:59:41 -04:00 committed by GitHub
commit c92c0ca5e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,7 +24,7 @@ angular.module('quay').directive('labelView', function () {
bootbox.alert({
size: "small",
title: $scope.label.key,
message: '<pre>' + $sanitize($scope.label.value) + '</pre>'
message: '<pre>' + $sanitize($scope.label.value.replace('<', '&lt;').replace('>', '&gt;')) + '</pre>'
});
};
}