From: zach%zachlipton.com <> Date: Mon, 17 Dec 2001 09:29:52 +0000 (+0000) Subject: Fix for bug 113646, midair when changing assignee gives error. Fix changes sub trim... X-Git-Tag: bugzilla-2.16rc1~287 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75f667d06000cebdea19f733463494b860d635b1;p=thirdparty%2Fbugzilla.git Fix for bug 113646, midair when changing assignee gives error. Fix changes sub trim() in globals.pl not to use $_ so as not to conflict with $_ values allready set. Patch by myk@mozilla.org, r1=bbaetz, r2=dave. --- diff --git a/globals.pl b/globals.pl index 09c9934bf6..87db566c18 100644 --- a/globals.pl +++ b/globals.pl @@ -1523,10 +1523,10 @@ sub max { # Trim whitespace from front and back. sub trim { - ($_) = (@_); - s/^\s+//g; - s/\s+$//g; - return $_; + my ($str) = @_; + $str =~ s/^\s+//g; + $str =~ s/\s+$//g; + return $str; } 1;