mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
attempted to squash all unescaped uri bugs. Fixes #137
This commit is contained in:
parent
a3008fd096
commit
61555849e0
10 changed files with 23 additions and 12 deletions
|
@ -2,7 +2,7 @@
|
|||
<div class="panel-heading">
|
||||
<span class="panel-title">{{vis.title}}</span>
|
||||
<div class="btn-group">
|
||||
<a ng-show="!appEmbedded" ng-href="#visualize/edit/{{vis.title}}"><i class="fa fa-pencil"></i></a>
|
||||
<a ng-show="!appEmbedded" ng-href="#visualize/edit/{{vis.title | uriescape}}"><i class="fa fa-pencil"></i></a>
|
||||
<a ng-show="!appEmbedded" ng-click="remove()"><i class="fa fa-times"></i></a>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
|
|
|
@ -23,7 +23,7 @@ define(function (require) {
|
|||
};
|
||||
|
||||
this.urlFor = function (id) {
|
||||
return '#/dashboard/' + id;
|
||||
return '#/dashboard/' + encodeURIComponent(id);
|
||||
};
|
||||
|
||||
this.delete = function (ids) {
|
||||
|
|
|
@ -217,7 +217,7 @@ define(function (require) {
|
|||
.then(function () {
|
||||
notify.info('Saved Data Source "' + savedSearch.title + '"');
|
||||
if (savedSearch.id !== $route.current.params.id) {
|
||||
$location.url(globalState.writeToUrl('/discover/' + savedSearch.id));
|
||||
$location.url(globalState.writeToUrl('/discover/' + encodeURIComponent(savedSearch.id)));
|
||||
}
|
||||
});
|
||||
})
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<div class="col-md-3">
|
||||
<label class="control-label">
|
||||
Index Pattern
|
||||
<a class="small" ng-href="#/settings/indices/{{opts.index}}"><i class="fa fa-pencil"></i></a>
|
||||
<a class="small" ng-href="#/settings/indices/{{opts.index | uriescape}}"><i class="fa fa-pencil"></i></a>
|
||||
</label>
|
||||
<select
|
||||
class="form-control"
|
||||
|
|
|
@ -27,7 +27,7 @@ define(function (require) {
|
|||
};
|
||||
|
||||
this.urlFor = function (id) {
|
||||
return '#/discover/' + id;
|
||||
return '#/discover/' + encodeURIComponent(id);
|
||||
};
|
||||
|
||||
this.delete = function (ids) {
|
||||
|
|
|
@ -31,7 +31,7 @@ define(function (require) {
|
|||
.map(function (id) {
|
||||
return {
|
||||
id: id,
|
||||
url: '#/settings/indices/' + id,
|
||||
url: '#/settings/indices/' + encodeURIComponent(id),
|
||||
class: 'sidebar-item-title ' + ($scope.edittingId === id ? 'active' : ''),
|
||||
default: $scope.defaultIndex === id
|
||||
};
|
||||
|
|
|
@ -29,12 +29,19 @@
|
|||
<div class="pull-right">
|
||||
<a href="{{ item.url }}" class="btn-success btn btn-xs">View</a>
|
||||
|
||||
<a href="#/settings/objects/{{service.service}}/{{item.id}}" class="btn-primary btn btn-xs">Edit</a>
|
||||
<a
|
||||
href="#/settings/objects/{{service.service | uriescape}}/{{item.id | uriescape}}"
|
||||
class="btn-primary btn btn-xs" >
|
||||
Edit
|
||||
</a>
|
||||
</div>
|
||||
<div class="pull-left">
|
||||
<input type="checkbox" ng-click="item.checked = !item.checked; toggleDeleteBtn(service)" ng-checked="item.checked">
|
||||
<input
|
||||
ng-click="item.checked = !item.checked; toggleDeleteBtn(service)"
|
||||
ng-checked="item.checked"
|
||||
type="checkbox" >
|
||||
</div>
|
||||
<a href="#/settings/objects/{{service.service}}/{{item.id}}"><i ng-class="item.icon" class="fa"></i> {{ item.title }}</a>
|
||||
<a href="#/settings/objects/{{service.service | uriescape}}/{{item.id | uriescape}}"><i ng-class="item.icon" class="fa"></i> {{ item.title }}</a>
|
||||
</li>
|
||||
<li ng-if="!service.data.length" class="empty">No "{{service.title}}" found.</li>
|
||||
</ul>
|
||||
|
|
|
@ -174,7 +174,7 @@ define(function (require) {
|
|||
vis.save()
|
||||
.then(function () {
|
||||
if (vis.id !== $route.current.params.id) {
|
||||
$location.url(globalState.writeToUrl('/visualize/edit/' + vis.id));
|
||||
$location.url(globalState.writeToUrl('/visualize/edit/' + encodeURIComponent(vis.id)));
|
||||
}
|
||||
configTemplate.close('save');
|
||||
}, notify.fatal);
|
||||
|
|
|
@ -10,7 +10,11 @@
|
|||
class="bitty-modal visualize-linked">
|
||||
<i class="fa fa-link"></i>
|
||||
|
||||
This visualization is linked to a saved search: <b>{{ vis.savedSearchId | json}}</b> <a href="#/discover/{{ vis.savedSearchId | uriescape }}"><i class="fa fa-pencil" tooltip="Click here to edit the linked saved search"></i></a>
|
||||
This visualization is linked to a saved search:
|
||||
<b>{{ vis.savedSearchId | json}}</b>
|
||||
<a href="#/discover/{{ vis.savedSearchId | uriescape }}">
|
||||
<i class="fa fa-pencil" tooltip="Click here to edit the linked saved search"></i>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div ng-if="linked && unlinking" ng-click="doneUnlinking()" class="bitty-modal">
|
||||
|
|
|
@ -19,7 +19,7 @@ define(function (require) {
|
|||
};
|
||||
|
||||
this.urlFor = function (id) {
|
||||
return '#/visualize/edit/' + id;
|
||||
return '#/visualize/edit/' + encodeURIComponent(id);
|
||||
};
|
||||
|
||||
this.delete = function (ids) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue