Bug 744691: Throw an error early when calling a method from a non-existent class
r=dkl, a=LpSolit git-svn-id: svn://10.0.0.236/trunk@263851 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
edd7726a92
commit
acc01eb4d3
@ -1 +1 @@
|
||||
8235
|
||||
8236
|
||||
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user