aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2018-07-19 11:52:12 +0200
committerMario <mario@mariovavti.com>2018-07-19 11:52:12 +0200
commit7f84933cab199ffc59ee1ca01d789313c0bc07c7 (patch)
treeb7c0d227d5ebc0a15acfc5f2146cf352994c162b /Zotlabs/Module
parent5fa3e10701f3e745d2d13a0bcbd0120b9841eb3e (diff)
downloadvolse-hubzilla-7f84933cab199ffc59ee1ca01d789313c0bc07c7.tar.gz
volse-hubzilla-7f84933cab199ffc59ee1ca01d789313c0bc07c7.tar.bz2
volse-hubzilla-7f84933cab199ffc59ee1ca01d789313c0bc07c7.zip
compatibility fix for future versions
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r--Zotlabs/Module/Magic.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/Zotlabs/Module/Magic.php b/Zotlabs/Module/Magic.php
index 4b3a223ba..562b7687f 100644
--- a/Zotlabs/Module/Magic.php
+++ b/Zotlabs/Module/Magic.php
@@ -14,12 +14,18 @@ class Magic extends \Zotlabs\Web\Controller {
logger('mod_magic: args: ' . print_r($_REQUEST,true),LOGGER_DATA);
$addr = ((x($_REQUEST,'addr')) ? $_REQUEST['addr'] : '');
+ $bdest = ((x($_REQUEST,'bdest')) ? $_REQUEST['bdest'] : '');
$dest = ((x($_REQUEST,'dest')) ? $_REQUEST['dest'] : '');
$test = ((x($_REQUEST,'test')) ? intval($_REQUEST['test']) : 0);
$rev = ((x($_REQUEST,'rev')) ? intval($_REQUEST['rev']) : 0);
$owa = ((x($_REQUEST,'owa')) ? intval($_REQUEST['owa']) : 0);
$delegate = ((x($_REQUEST,'delegate')) ? $_REQUEST['delegate'] : '');
-
+
+ if($bdest)
+ $dest = hex2bin($bdest);
+
+ $dest = html_entity_decode($dest);
+
$parsed = parse_url($dest);
if(! $parsed) {
if($test) {