Generate escape sequences for characters in the query

This commit is contained in:
jartek 2014-10-29 23:18:11 +05:30
parent df123ed796
commit 0631afa382

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');