Replace url-unsafe characters in base64 query data

This commit is contained in:
Dan Sosedoff
2016-02-18 21:17:31 -06:00
parent 586605557e
commit 540613645f
5 changed files with 45 additions and 8 deletions

View File

@@ -96,7 +96,7 @@ function explainQuery(query, cb) { apiCall("post", "/explain", { quer
function disconnect(cb) { apiCall("post", "/disconnect", {}, cb); }
function encodeQuery(query) {
return window.btoa(query);
return window.btoa(query).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, ".");
}
function buildSchemaSection(name, objects) {