1
0
Fork 0
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:
jvoisin 2025-01-20 15:44:53 +01:00 committed by Frédéric Guillot
parent aa56d23551
commit 71c7845c42

View file

@ -42,7 +42,7 @@ class WebAuthnHandler {
return btoa(String.fromCharCode.apply(null, new Uint8Array(value)))
.replace(/\+/g, "-")
.replace(/\//g, "_")
.replace(/=/g, "");
.replace(/=+$/g, "");
}
async post(urlKey, username, data) {