[dw-free] replying from inside the email for openID users doesn't work
[commit: http://hg.dwscoalition.org/dw-free/rev/91128c403d5e]
http://bugs.dwscoalition.org/show_bug.cgi?id=314
Only allow a reply if the currently logged-in user is the user the email
notification was sent to.
Patch by
juliet.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=314
Only allow a reply if the currently logged-in user is the user the email
notification was sent to.
Patch by
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Files modified:
- cgi-bin/talklib.pl
-------------------------------------------------------------------------------- diff -r 3ad73872c71d -r 91128c403d5e cgi-bin/talklib.pl --- a/cgi-bin/talklib.pl Sat Mar 28 13:53:55 2009 +0000 +++ b/cgi-bin/talklib.pl Sat Mar 28 14:17:36 2009 +0000 @@ -2890,9 +2890,11 @@ sub init { } my $cookie_auth; - if ($form->{'usertype'} eq "cookieuser") { + if (($form->{'usertype'} eq "user") || + ($form->{'usertype'} eq "cookieuser")) { + my $userpost = $form->{'userpost'} || $form->{'cookieuser'}; $bmlerr->("$SC.error.lostcookie") - unless ($remote && $remote->{'user'} eq $form->{'cookieuser'}); + unless $remote && $remote->{'user'} eq $userpost; return undef if @$errret; $cookie_auth = 1; --------------------------------------------------------------------------------