Merge pull request #42 from jartek/fix-encoding-for-query

Generate escape sequences for special characters in the query
This commit is contained in:
Dan Sosedoff 2014-10-29 18:33:45 -05:00
commit 981d332610

View File

@ -239,9 +239,10 @@ function exportToCSV() {
// Replace line breaks with spaces
query = query.replace(/\n/g, " ");
setCurrentTab("table_query");
query = window.encodeURI(query)
var url = "http://" + window.location.host + "/query?format=csv&query=" + query;
var win = window.open(url, '_blank');