diff options
author | Byron Jones <bjones@mozilla.com> | 2012-05-24 08:20:16 +0200 |
---|---|---|
committer | Byron Jones <bjones@mozilla.com> | 2012-05-24 08:20:16 +0200 |
commit | da309367841019ff8e0a6032fe341192f3fa6433 (patch) | |
tree | cff2071e1a3d03e805234d06e64fe87a247fdbd4 | |
parent | 2c366369abfb3bd5d353ccb14c8d8f298db27a80 (diff) | |
download | bugzilla-da309367841019ff8e0a6032fe341192f3fa6433.tar.gz bugzilla-da309367841019ff8e0a6032fe341192f3fa6433.tar.xz |
Bug 744691: Throw an error early when calling a method from a non-existent class
r=dkl, a=LpSolit
-rw-r--r-- | Bugzilla/WebService/Server.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Bugzilla/WebService/Server.pm b/Bugzilla/WebService/Server.pm index 01ff907cd..a43ed204c 100644 --- a/Bugzilla/WebService/Server.pm +++ b/Bugzilla/WebService/Server.pm @@ -15,6 +15,7 @@ use Scalar::Util qw(blessed); sub handle_login { my ($self, $class, $method, $full_method) = @_; + ThrowCodeError('unknown_method', {method => $full_method}) if !$class; eval "require $class"; ThrowCodeError('unknown_method', {method => $full_method}) if $@; return if ($class->login_exempt($method) |