aboutsummaryrefslogtreecommitdiffstats
path: root/mod/magic.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/magic.php')
-rw-r--r--mod/magic.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/magic.php b/mod/magic.php
index 21f703192..6c8ad24ed 100644
--- a/mod/magic.php
+++ b/mod/magic.php
@@ -159,7 +159,7 @@ function magic_init(&$a) {
logger('mod_magic: redirecting to: ' . $target_url, LOGGER_DEBUG);
goaway($target_url
- . '/?f=&auth=' . $channel['channel_address'] . '@' . $a->get_hostname()
+ . '/?f=&auth=' . urlencode($channel['channel_address'] . '@' . $a->get_hostname())
. '&sec=' . $token . '&dest=' . urlencode($dest) . '&version=' . ZOT_REVISION);
}