From: friendica Date: Wed, 21 Nov 2012 23:56:00 +0000 (-0800) Subject: always check for valid dfrn_id before auto_redir X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0840c8365ae4aae1d56e75caf190dbd24c67958f;p=friendica.git always check for valid dfrn_id before auto_redir --- diff --git a/include/redir.php b/include/redir.php index ba7d02993f..3e8ddf2612 100644 --- a/include/redir.php +++ b/include/redir.php @@ -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`)