mirror of
https://github.com/grafana/grafana.git
synced 2025-09-29 04:53:51 +08:00
fix: escape metric segment auto complete, fixes #9423
This commit is contained in:
@ -79,7 +79,9 @@ function (_, $, coreModule) {
|
||||
$scope.$apply(function() {
|
||||
$scope.getOptions({ $query: query }).then(function(altSegments) {
|
||||
$scope.altSegments = altSegments;
|
||||
options = _.map($scope.altSegments, function(alt) { return alt.value; });
|
||||
options = _.map($scope.altSegments, function(alt) {
|
||||
return _.escape(alt.value);
|
||||
});
|
||||
|
||||
// add custom values
|
||||
if (segment.custom !== 'false') {
|
||||
|
Reference in New Issue
Block a user