diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-07-19 05:24:22 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-07-19 05:24:22 -0700 |
commit | bbe53699f26bfa4e4d17da097fd8f2fc14da47dd (patch) | |
tree | 70888d850bc8f839532b087584eb41f0a9bbf0a8 /mod/dfrn_request.php | |
parent | 9b0584e59338f0b75c6b8a9a1b5def33da5de5f6 (diff) | |
download | volse-hubzilla-bbe53699f26bfa4e4d17da097fd8f2fc14da47dd.tar.gz volse-hubzilla-bbe53699f26bfa4e4d17da097fd8f2fc14da47dd.tar.bz2 volse-hubzilla-bbe53699f26bfa4e4d17da097fd8f2fc14da47dd.zip |
bug fixes
Diffstat (limited to 'mod/dfrn_request.php')
-rw-r--r-- | mod/dfrn_request.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/mod/dfrn_request.php b/mod/dfrn_request.php index 7fb55c4bf..b0c7b36aa 100644 --- a/mod/dfrn_request.php +++ b/mod/dfrn_request.php @@ -39,7 +39,6 @@ function dfrn_request_post(&$a) { // to confirm the request. We've done so and clicked submit, // which brings us here. - $dfrn_url = notags(trim($_POST['dfrn_url'])); $aes_allow = (((x($_POST,'aes_allow')) && ($_POST['aes_allow'] == 1)) ? 1 : 0); $confirm_key = ((x($_POST,'confirm_key')) ? $_POST['confirm_key'] : ""); @@ -48,7 +47,7 @@ function dfrn_request_post(&$a) { if(x($dfrn_url)) { - $r = q("SELECT * FROM `contact` WHERE `uid` = %d AND `dfrn-url` = '%s' LIMIT 1", + $r = q("SELECT * FROM `contact` WHERE `uid` = %d AND `url` = '%s' LIMIT 1", intval($_SESSION['uid']), dbesc($dfrn_url) ); @@ -88,7 +87,7 @@ function dfrn_request_post(&$a) { if($invalid) { notice( $invalid . ' required DFRN parameter' . (($invalid == 1) ? " was " : "s were " ) - . "not found at the given URL" . EOL ); + . "not found at the given URL" . EOL . print_r($parms,true)) ; return; } } @@ -220,7 +219,7 @@ function dfrn_request_post(&$a) { if($invalid) { notice( $invalid . ' required DFRN parameter' . (($invalid == 1) ? " was " : "s were " ) - . "not found at the given URL" . EOL) ; + . "not found at the given URL" . EOL . print_r($parms,true)) ; return; } |