always check for valid dfrn_id before auto_redir
This commit is contained in:
parent
ed1b84fb60
commit
0840c8365a
1 changed files with 6 additions and 0 deletions
|
@ -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`)
|
||||
|
|
Loading…
Reference in a new issue