summaryrefslogtreecommitdiffstats
path: root/globals.pl
diff options
context:
space:
mode:
authormkanat%kerio.com <>2005-03-05 09:18:47 +0100
committermkanat%kerio.com <>2005-03-05 09:18:47 +0100
commitec610fd673feb6d6e18d121b5e67aa3f87e7f4ea (patch)
treeb1d6fe9b10b89a30e2b1932d050d5678362f638a /globals.pl
parente4b8b770b0229a0761a3ef5116c7fcad4e5352d5 (diff)
downloadbugzilla-ec610fd673feb6d6e18d121b5e67aa3f87e7f4ea.tar.gz
bugzilla-ec610fd673feb6d6e18d121b5e67aa3f87e7f4ea.tar.xz
Bug 277782: _throw_error should unlock tables when tables are locked, automatically
Patch By Tomas Kopal <Tomas.Kopal@altap.cz> r=travis, r=LpSolit, a=justdave
Diffstat (limited to 'globals.pl')
-rw-r--r--globals.pl9
1 files changed, 4 insertions, 5 deletions
diff --git a/globals.pl b/globals.pl
index e71493f6b..44bf7dc3e 100644
--- a/globals.pl
+++ b/globals.pl
@@ -613,11 +613,11 @@ sub ValidatePassword {
my ($password, $matchpassword) = @_;
if (length($password) < 3) {
- ThrowUserError("password_too_short", undef, 'abort');
+ ThrowUserError("password_too_short");
} elsif (length($password) > 16) {
- ThrowUserError("password_too_long", undef, 'abort');
+ ThrowUserError("password_too_long");
} elsif ((defined $matchpassword) && ($password ne $matchpassword)) {
- ThrowUserError("passwords_dont_match", undef, 'abort');
+ ThrowUserError("passwords_dont_match");
}
}
@@ -649,8 +649,7 @@ sub DBNameToIdAndCheck {
return $result;
}
- ThrowUserError("invalid_username",
- { name => $name }, "abort");
+ ThrowUserError("invalid_username", { name => $name });
}
sub get_classification_id {