From c5b861f4a557e54e04ddc4f16d95101c8fe9b9d4 Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Wed, 14 Dec 2022 03:29:38 +0000 Subject: index: decode xmpp%3a uri if encoded --- index.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'index.php') diff --git a/index.php b/index.php index a8d9195..08ba129 100644 --- a/index.php +++ b/index.php @@ -15,6 +15,9 @@ $clients = json_decode(file_get_contents("clients_{$os}.json")); $lang = json_decode(file_get_contents("lang/en.json")); $uri = $_SERVER['QUERY_STRING']; + if (substr($uri, 0, 7) == 'xmpp%3a') { + $uri = urldecode($uri); + } if ( substr($uri, 0, 5) != "xmpp:") { $uri = "xmpp:" . $uri; } -- cgit 1.4.1