about summary refs log tree commit diff
diff options
context:
space:
mode:
authorZach DeCook <zachdecook@librem.one>2022-12-14 03:29:38 +0000
committerZach DeCook <zachdecook@librem.one>2022-12-14 03:32:43 +0000
commitc5b861f4a557e54e04ddc4f16d95101c8fe9b9d4 (patch)
treebc71e2bc37b8bec438b4fce51f27c739ff887310
parent385004df10d706fca1323763e84da6fd11968603 (diff)
downloadphp-xmpp-invitation-php.tar.gz
index: decode xmpp%3a uri if encoded php
-rw-r--r--index.php3
1 files changed, 3 insertions, 0 deletions
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;
 	}