diff options
author | zach%zachlipton.com <> | 2001-12-17 10:29:52 +0100 |
---|---|---|
committer | zach%zachlipton.com <> | 2001-12-17 10:29:52 +0100 |
commit | 75f667d06000cebdea19f733463494b860d635b1 (patch) | |
tree | e15d001e695a42accd2b93d2fca4615133c94f90 /globals.pl | |
parent | df4dfc4cefb0e7e84e945711917eed41a8cea5c4 (diff) | |
download | bugzilla-75f667d06000cebdea19f733463494b860d635b1.tar.gz bugzilla-75f667d06000cebdea19f733463494b860d635b1.tar.xz |
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.
Diffstat (limited to 'globals.pl')
-rw-r--r-- | globals.pl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/globals.pl b/globals.pl index 09c9934bf..87db566c1 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; |