summaryrefslogtreecommitdiff
path: root/lib/VNDB/Handler/Staff.pm
diff options
context:
space:
mode:
authormorkt <>2015-02-04 14:35:48 +0100
committerYorhel <git@yorhel.nl>2015-02-04 14:35:48 +0100
commite311da013d5ece918723de43916a9ce91a0f6fd1 (patch)
tree81277798612e0149b0e5bc0b6c161b9af646e137 /lib/VNDB/Handler/Staff.pm
parent9e4722f6e09f8e52b0d88e9d37afcc3e78155793 (diff)
Handler::Staff: Remove spaces around aliasses
Diffstat (limited to 'lib/VNDB/Handler/Staff.pm')
-rw-r--r--lib/VNDB/Handler/Staff.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/VNDB/Handler/Staff.pm b/lib/VNDB/Handler/Staff.pm
index 30d4e992..560a6e09 100644
--- a/lib/VNDB/Handler/Staff.pm
+++ b/lib/VNDB/Handler/Staff.pm
@@ -246,6 +246,7 @@ sub edit {
push @{$frm->{_err}}, ['alias_name', 'required'];
last;
}
+ s/^\s+|\s+$//g for ($a->{name}, $a->{orig});
# normalize alias id to a number so that the comparison works
# or reset it to zero for newly added aliases.
$a->{aid} *= $old_aliases{$a->{aid}} ? 1 : 0;