From: Byron Jones Date: Thu, 24 May 2012 06:20:16 +0000 (+0800) Subject: Bug 744691: Throw an error early when calling a method from a non-existent class X-Git-Tag: bugzilla-4.3.2~71 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da309367841019ff8e0a6032fe341192f3fa6433;p=thirdparty%2Fbugzilla.git Bug 744691: Throw an error early when calling a method from a non-existent class r=dkl, a=LpSolit --- diff --git a/Bugzilla/WebService/Server.pm b/Bugzilla/WebService/Server.pm index 01ff907cd1..a43ed204c9 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)