1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-24 07:49:41 +02:00

Sanitize text that gets sent to Gritter for notifications,

#198
This commit is contained in:
Kevan Ahlquist 2016-03-31 20:06:46 -05:00
parent b2b814a65b
commit 5bf922325a
4 changed files with 9 additions and 7 deletions

View file

@ -75,7 +75,7 @@ angular.module('dockerui', [
if (typeof(response.data) === 'string' && response.data.startsWith('Conflict.')) {
$.gritter.add({
title: 'Error',
text: response.data,
text: $('<div>').text(response.data).html(),
time: 10000
});
}