mirror of
https://github.com/miniflux/v2.git
synced 2025-06-27 16:36:00 +00:00
Anchor =
removal in webauthn_handler.js
Since we're base64-encoding, `=` can only happen at the end, so no need to traverse the whole payload.
This commit is contained in:
parent
aa56d23551
commit
71c7845c42
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ class WebAuthnHandler {
|
||||||
return btoa(String.fromCharCode.apply(null, new Uint8Array(value)))
|
return btoa(String.fromCharCode.apply(null, new Uint8Array(value)))
|
||||||
.replace(/\+/g, "-")
|
.replace(/\+/g, "-")
|
||||||
.replace(/\//g, "_")
|
.replace(/\//g, "_")
|
||||||
.replace(/=/g, "");
|
.replace(/=+$/g, "");
|
||||||
}
|
}
|
||||||
|
|
||||||
async post(urlKey, username, data) {
|
async post(urlKey, username, data) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue