Ignore invalid style= inputs.

        Patch by kareila. 

diffs (13 lines):

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.
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to