XMPP invitation landing page, without javascript
Support base64-encoded JIDs, added for ChatSecure
Georg Lukas 2017-01-05
parent acf401f · commit d4551bb
-rw-r--r--index.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/index.html b/index.html
index f8b9baf..7b10278 100644
--- a/index.html
+++ b/index.html
@@ -47,6 +47,13 @@ function load_hash() {
key_prefix = "chat.";
var jid = window.location.search || window.location.hash;
jid = decodeURIComponent(jid.substring(jid.indexOf('#') + 1, jid.length));
+ try {
+ base_decoded = window.atob(jid);
+ if (base_decoded.search('@') >= 0)
+ jid = base_decoded;
+ } catch (err) {
+ // ignore error, JID wasn't base64 encoded
+ }
if (jid.search("\\?join") >= 0) {
muc = true;
key_prefix = "muc.";