No warnings when trying to post with an empty subject.
Patch by denise.
diffs (12 lines):
diff -r 1ebe76640790 -r fc7366e3aa8d cgi-bin/weblib.pl
--- a/cgi-bin/weblib.pl Mon Feb 28 16:17:44 2011 +0800
+++ b/cgi-bin/weblib.pl Mon Feb 28 16:23:19 2011 +0800
@@ -2305,7 +2305,7 @@ sub entry_form_decode
$req->{$_} = $POST->{$_};
}
- if ($POST->{"subject"} eq BML::ml('entryform.subject.hint2')) {
+ if ( $POST->{"subject"} && ( $POST->{"subject"} eq BML::ml(
'entryform.subject.hint2' ) ) ) {
$req->{"subject"} = "";
}
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog