diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2010-02-06 18:53:32 +0100 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2010-02-06 18:53:32 +0100 |
commit | fcf51896ea64862b43e651657ea775319c1abd31 (patch) | |
tree | 94070166c53d16897799537bca83ca5930b90511 /Bugzilla/WebService/Server.pm | |
parent | a4362815ee6e840253a8d42e2bbe4c604f58cd15 (diff) | |
download | bugzilla-fcf51896ea64862b43e651657ea775319c1abd31.tar.gz bugzilla-fcf51896ea64862b43e651657ea775319c1abd31.tar.xz |
Bug 515568: handle_login() doesn't check $@ after eval
r/a=mkanat
Diffstat (limited to 'Bugzilla/WebService/Server.pm')
-rw-r--r-- | Bugzilla/WebService/Server.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Bugzilla/WebService/Server.pm b/Bugzilla/WebService/Server.pm index 115c7df89..9571e8030 100644 --- a/Bugzilla/WebService/Server.pm +++ b/Bugzilla/WebService/Server.pm @@ -18,9 +18,12 @@ package Bugzilla::WebService::Server; use strict; +use Bugzilla::Error; + sub handle_login { my ($self, $class, $method, $full_method) = @_; eval "require $class"; + ThrowCodeError('unknown_method', {method => $full_method}) if $@; return if ($class->login_exempt($method) and !defined Bugzilla->input_params->{Bugzilla_login}); Bugzilla->login(); |