mirror of
https://github.com/sosedoff/pgweb.git
synced 2024-12-14 19:21:46 +03:00
Merge pull request #186 from SjonHortensius/js-export-btoa-fix
Fix base64 padding with multiple =-signs. An equal amount of dots is …
This commit is contained in:
commit
23e6b02ae4
@ -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).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, ".");
|
||||
return window.btoa(query).replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, ".");
|
||||
}
|
||||
|
||||
function buildSchemaSection(name, objects) {
|
||||
|
Loading…
Reference in New Issue
Block a user