From cf2e0a0549940da8aa17d8f190852c230d96b2e6 Mon Sep 17 00:00:00 2001 From: Joseph Cheung Date: Fri, 24 Feb 2023 20:02:38 +0800 Subject: [PATCH] Update webapp.py --- searx/webapp.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/searx/webapp.py b/searx/webapp.py index 631c3ff95..4f67304e8 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -999,11 +999,9 @@ const pubkey = `-----BEGIN PUBLIC KEY-----MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCg pub = importPublicKey(pubkey) -async function b64EncodeUnicode(t) +function b64EncodeUnicode(t) { - t = await encryptDataWithPublicKey(t,await pub) - t = await arrayBufferToString(t) - return Promise.resolve(t); + return btoa(encodeURIComponent(t)) } var word_last=""; var lock_chat=1;