From: travis%sedsystems.ca <> Date: Sat, 19 Mar 2005 00:32:52 +0000 (+0000) Subject: Bug 223706 : process_bug.cgi can spew "use of unitialized value in 'eq' " into error... X-Git-Tag: bugzilla-2.18.1~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a8b06c1454b736a193fb9749a1915edb049509b1;p=thirdparty%2Fbugzilla.git Bug 223706 : process_bug.cgi can spew "use of unitialized value in 'eq' " into error logs Patch by Shane H. W. Travis r=LpSolit a=justdave --- diff --git a/process_bug.cgi b/process_bug.cgi index d36f813f47..133e9b0563 100755 --- a/process_bug.cgi +++ b/process_bug.cgi @@ -352,6 +352,9 @@ sub CheckCanChangeField { # START DO_NOT_CHANGE my ($field, $bugid, $oldvalue, $newvalue) = (@_); + $oldvalue = defined($oldvalue) ? $oldvalue : ''; + $newvalue = defined($newvalue) ? $newvalue : ''; + # Convert email IDs into addresses for $oldvalue if (($field eq "assigned_to") || ($field eq "reporter") ||