[dw-free] Use of uninitialized value in weblib.pl
[commit: http://hg.dwscoalition.org/dw-free/rev/fc7366e3aa8d]
http://bugs.dwscoalition.org/show_bug.cgi?id=3519
No warnings when trying to post with an empty subject.
Patch by
denise.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=3519
No warnings when trying to post with an empty subject.
Patch by
![[staff profile]](https://www.dreamwidth.org/img/silk/identity/user_staff.png)
Files modified:
- cgi-bin/weblib.pl
-------------------------------------------------------------------------------- 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"} = ""; } --------------------------------------------------------------------------------