XMPP invitation landing page, without javascript
Support base64-encoded JIDs, added for ChatSecure
| -rw-r--r-- | index.html | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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."; |