Merge pull request #42 from jartek/fix-encoding-for-query
Generate escape sequences for special characters in the query
This commit is contained in:
commit
981d332610
@ -239,9 +239,10 @@ function exportToCSV() {
|
|||||||
|
|
||||||
// Replace line breaks with spaces
|
// Replace line breaks with spaces
|
||||||
query = query.replace(/\n/g, " ");
|
query = query.replace(/\n/g, " ");
|
||||||
|
|
||||||
setCurrentTab("table_query");
|
setCurrentTab("table_query");
|
||||||
|
|
||||||
|
query = window.encodeURI(query)
|
||||||
|
|
||||||
var url = "http://" + window.location.host + "/query?format=csv&query=" + query;
|
var url = "http://" + window.location.host + "/query?format=csv&query=" + query;
|
||||||
var win = window.open(url, '_blank');
|
var win = window.open(url, '_blank');
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user