[#67,#87,link,embed][s]: encode query string uri components so they work correctly from link and embedding.
This commit is contained in:
parent
57548e0d17
commit
d42d1c0dbd
@ -153,7 +153,7 @@
|
||||
<select name="backend_type">
|
||||
<option value="csv">CSV</option>
|
||||
<option vlaue="excel">Excel</option>
|
||||
<option value="gdocs">Google Spreadsheet</option>
|
||||
<option value="gdoc">Google Spreadsheet</option>
|
||||
<option value="elasticsearch">ElasticSearch</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
@ -21,7 +21,7 @@ var ExplorerApp = Backbone.View.extend({
|
||||
this.router.route(/explorer/, 'explorer', this.viewExplorer);
|
||||
Backbone.history.start();
|
||||
|
||||
var state = recline.Util.parseQueryString(window.location.search);
|
||||
var state = recline.Util.parseQueryString(decodeURIComponent(window.location.search));
|
||||
if (state) {
|
||||
_.each(state, function(value, key) {
|
||||
try {
|
||||
|
||||
@ -56,7 +56,7 @@ my.composeQueryString = function(queryParams) {
|
||||
if (typeof(value) === 'object') {
|
||||
value = JSON.stringify(value);
|
||||
}
|
||||
items.push(key + '=' + value);
|
||||
items.push(key + '=' + encodeURIComponent(value));
|
||||
});
|
||||
queryString += items.join('&');
|
||||
return queryString;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user