From 0840c8365ae4aae1d56e75caf190dbd24c67958f Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 21 Nov 2012 15:56:00 -0800 Subject: [PATCH] always check for valid dfrn_id before auto_redir --- include/redir.php | 6 ++++++ 1 file changed, 6 insertions(+) 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`)