Skip to content

Commit

Permalink
#159 Sanitize the content to be displayed by AlertSrv
Browse files Browse the repository at this point in the history
  • Loading branch information
nadouani committed Mar 27, 2017
1 parent be5129e commit a7d1fee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/app/scripts/services/AlertSrv.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
(function() {
'use strict';
angular.module('theHiveServices')
.factory('AlertSrv', function($state, Notification) {
.factory('AlertSrv', function($state, Notification, $sanitize) {

function log(message, type) {
Notification[type || 'error'](message);
Notification[type || 'error']($sanitize(message));
}

return {
Expand Down

0 comments on commit a7d1fee

Please sign in to comment.