Always include session id in get queries, fixes #142

This commit is contained in:
Dan Sosedoff 2016-02-26 08:16:17 -08:00
parent ff25927b52
commit 86f63eecc5
2 changed files with 4 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@ -211,7 +211,7 @@ function performTableAction(table, action, el) {
var format = el.data("format");
var filename = table + "." + format;
var query = window.encodeURI("SELECT * FROM " + table);
var url = "http://" + window.location.host + "/api/query?format=" + format + "&filename=" + filename + "&query=" + query;
var url = "http://" + window.location.host + "/api/query?format=" + format + "&filename=" + filename + "&query=" + query + "&_session_id=" + getSessionId();
var win = window.open(url, "_blank");
win.focus();
break;
@ -542,7 +542,7 @@ function exportTo(format) {
return;
}
var url = "http://" + window.location.host + "/api/query?format=" + format + "&query=" + encodeQuery(query);
var url = "http://" + window.location.host + "/api/query?format=" + format + "&query=" + encodeQuery(query) + "&_session_id=" + getSessionId();
var win = window.open(url, '_blank');
setCurrentTab("table_query");