mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
perform uri escaping using the uriescape filter
This commit is contained in:
parent
36cbbdaf63
commit
fa1c77fa5b
1 changed files with 8 additions and 1 deletions
|
@ -1,4 +1,6 @@
|
|||
define(function (require) {
|
||||
require('filters/uriescape');
|
||||
require('filters/rison');
|
||||
var _ = require('lodash');
|
||||
var rison = require('utils/rison');
|
||||
var location = require('modules').get('kibana/url');
|
||||
|
@ -50,7 +52,12 @@ define(function (require) {
|
|||
throw new Error('Replacement failed, key not found: ' + key);
|
||||
}
|
||||
|
||||
return encodeURIComponent($rootScope.$eval(expr, paramObj));
|
||||
// append uriescape filter if not included
|
||||
if (expr.indexOf('uriescape') === -1) {
|
||||
expr += '|uriescape';
|
||||
}
|
||||
|
||||
return $rootScope.$eval(expr, paramObj);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue