[dw-free] $init->{style} always equals 'mine'
[commit: http://hg.dwscoalition.org/dw-free/rev/93d7a82de65d]
http://bugs.dwscoalition.org/show_bug.cgi?id=1459
Ignore invalid style= inputs.
Patch by
kareila.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=1459
Ignore invalid style= inputs.
Patch by
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Files modified:
- cgi-bin/talklib.pl
-------------------------------------------------------------------------------- diff -r 7fc2aa354b43 -r 93d7a82de65d cgi-bin/talklib.pl --- a/cgi-bin/talklib.pl Wed Jul 22 01:32:04 2009 +0000 +++ b/cgi-bin/talklib.pl Wed Jul 22 01:48:56 2009 +0000 @@ -185,7 +185,8 @@ sub init $init->{'dthread'} = $init->{'thread'}; $init->{'clustered'} = 0; $init->{'replyto'} = $form->{'replyto'}+0; - $init->{'style'} = $form->{'style'} || undef; + $init->{'style'} = $form->{'style'} + if $form->{'style'} =~ /^(?:mine|light)$/; if ($journal) { # they specified a journal argument, which indicates new style. --------------------------------------------------------------------------------