X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fredir.php;h=ab4f3220cd7d1a1ace36ece544828db9ab96d0a6;hb=03ff349a942c803887b9f8a8c56c1ae8d9160cb6;hp=ba7d02993f86526a9cd33cf180f719aca3025209;hpb=4d289574cadc5373e15117001d9016c4a59c90da;p=friendica.git diff --git a/include/redir.php b/include/redir.php index ba7d02993f..ab4f3220cd 100644 --- a/include/redir.php +++ b/include/redir.php @@ -4,7 +4,7 @@ function auto_redir(&$a, $contact_nick) { // prevent looping - if(intval($_REQUEST,'redir')) + if(x($_REQUEST,'redir') && intval($_REQUEST['redir'])) return; if((! $contact_nick) || ($contact_nick === $a->user['nickname'])) @@ -64,6 +64,12 @@ function auto_redir(&$a, $contact_nick) { $dfrn_id = '0:' . $orig_id; } + // ensure that we've got a valid ID. There may be some edge cases with forums and non-duplex mode + // that may have triggered some of the "went to {profile/intro} and got an RSS feed" issues + + if(strlen($dfrn_id) < 3) + return; + $sec = random_string(); q("INSERT INTO `profile_check` ( `uid`, `cid`, `dfrn_id`, `sec`, `expire`)