From 1bf03b53e0dfbf2ceb31f1d3487fbf2a8c0fca7d Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Tue, 26 Aug 2025 20:02:32 +0200 Subject: [PATCH] #453 adapted encoding to new library requirements --- lam/templates/lib/500_lam.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lam/templates/lib/500_lam.js b/lam/templates/lib/500_lam.js index 8da115930..5aeb0048d 100644 --- a/lam/templates/lib/500_lam.js +++ b/lam/templates/lib/500_lam.js @@ -2072,7 +2072,10 @@ window.lam.webauthn.authenticate = function(publicKey) { * @returns base64 string */ window.lam.webauthn.arrayToBase64String = function(input) { - return btoa(String.fromCharCode.apply(null, input)).replaceAll("=", ""); + return btoa(String.fromCharCode(...input)) + .replaceAll("=", "") + .replaceAll("+", "-") + .replaceAll("/", "_"); } /**