aboutsummaryrefslogtreecommitdiffstats
path: root/mod/dfrn_request.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-01-21 05:21:13 -0800
committerFriendika <info@friendika.com>2011-01-21 05:21:13 -0800
commitd347026094c624320884697358fa6b2272ee5aca (patch)
treee04096ad85b6000025bd18b15aff34464dba52fc /mod/dfrn_request.php
parentc574e4c5879312f57db43436044285de56026f0b (diff)
downloadvolse-hubzilla-d347026094c624320884697358fa6b2272ee5aca.tar.gz
volse-hubzilla-d347026094c624320884697358fa6b2272ee5aca.tar.bz2
volse-hubzilla-d347026094c624320884697358fa6b2272ee5aca.zip
don't urlencode $_GET vars
Diffstat (limited to 'mod/dfrn_request.php')
-rw-r--r--mod/dfrn_request.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/mod/dfrn_request.php b/mod/dfrn_request.php
index 6850f4be4..742d25142 100644
--- a/mod/dfrn_request.php
+++ b/mod/dfrn_request.php
@@ -590,8 +590,12 @@ function dfrn_request_content(&$a) {
$myaddr = $a->user['nickname'] . '@' . substr($a->get_baseurl(), strpos($a->get_baseurl(),'://') + 3 );
}
}
- else {
- $myaddr = ((x($_GET,'address')) ? urldecode($_GET['address']) : '');
+ elseif($x($_GET,'addr')) {
+ $myaddr = hex2bin($_GET['addr']);
+ }
+ else {
+ /* $_GET variables are already urldecoded */
+ $myaddr = ((x($_GET,'address')) ? $_GET['address'] : '');
}
/**