summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2012-05-24 08:20:16 +0200
committerByron Jones <bjones@mozilla.com>2012-05-24 08:20:16 +0200
commitda309367841019ff8e0a6032fe341192f3fa6433 (patch)
treecff2071e1a3d03e805234d06e64fe87a247fdbd4
parent2c366369abfb3bd5d353ccb14c8d8f298db27a80 (diff)
downloadbugzilla-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.pm1
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)