diff options
| author | Zach DeCook <zachdecook@librem.one> | 2022-12-14 03:29:38 +0000 |
|---|---|---|
| committer | Zach DeCook <zachdecook@librem.one> | 2022-12-14 03:32:43 +0000 |
| commit | c5b861f4a557e54e04ddc4f16d95101c8fe9b9d4 (patch) | |
| tree | bc71e2bc37b8bec438b4fce51f27c739ff887310 /index.php | |
| parent | 385004df10d706fca1323763e84da6fd11968603 (diff) | |
| download | php-xmpp-invitation-php.tar.gz | |
index: decode xmpp%3a uri if encoded php
Diffstat (limited to 'index.php')
| -rw-r--r-- | index.php | 3 |
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; } |
