mark: A photo of Mark kneeling on top of the Taal Volcano in the Philippines. It was a long hike. (Default)
Mark Smith ([staff profile] mark) wrote in [site community profile] changelog2009-07-22 01:48 am

[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 [personal profile] kareila.

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.
--------------------------------------------------------------------------------