]> git.mxchange.org Git - friendica.git/commitdiff
always check for valid dfrn_id before auto_redir
authorfriendica <info@friendica.com>
Wed, 21 Nov 2012 23:56:00 +0000 (15:56 -0800)
committerfriendica <info@friendica.com>
Wed, 21 Nov 2012 23:56:00 +0000 (15:56 -0800)
include/redir.php

index ba7d02993f86526a9cd33cf180f719aca3025209..3e8ddf26120a63558785f48eb5f68192a0dbb47f 100644 (file)
@@ -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`)