зеркало из https://github.com/mozilla/gecko-dev.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.
This commit is contained in:
Родитель
ae53a4b116
Коммит
e4ba5888ef
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче