From 2d2fc6373bf882d5ddb16e3136567647cf2ef3ae Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Thu, 24 May 2012 14:17:50 +0800 Subject: Bug 744691: Throw an error early when calling a method from a non-existent class r=dkl, a=LpSolit --- Bugzilla/WebService/Server.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'Bugzilla/WebService') diff --git a/Bugzilla/WebService/Server.pm b/Bugzilla/WebService/Server.pm index 4e0315219..feb80e9d0 100644 --- a/Bugzilla/WebService/Server.pm +++ b/Bugzilla/WebService/Server.pm @@ -25,6 +25,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) -- cgit v1.2.3-24-g4f1b