Fix xss vulnerability in scripted fields

Fixes #5788
This commit is contained in:
Lukas Olson 2015-12-15 09:47:19 -07:00 committed by Court Ewing
parent 35c9e2b1bb
commit 3f7be610f9

View file

@ -44,8 +44,8 @@ define(function (require) {
rowScopes.push(rowScope);
return [
field.name,
field.script,
_.escape(field.name),
_.escape(field.script),
_.get($scope.indexPattern, ['fieldFormatMap', field.name, 'type', 'title']),
{
markup: controlsHtml,