summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2015-03-16 18:11:19 +0100
committerByron Jones <glob@mozilla.com>2015-03-16 18:11:19 +0100
commit7f7a5416d5b83140eed3f1321424a3552c673497 (patch)
tree1d3783fe46234e7cfa3f9291749191621af935a2 /Bugzilla
parent894d016fcad932caa7fae93c171059e9fd7ea2bf (diff)
downloadbugzilla-7f7a5416d5b83140eed3f1321424a3552c673497.tar.gz
bugzilla-7f7a5416d5b83140eed3f1321424a3552c673497.tar.xz
Bug 1142399: invalid xmlrpc requests warns: Use of uninitialized value $file in substitution (s///) (Bugzilla/WebService/Server/XMLRPC.pm:114)
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/WebService/Server/XMLRPC.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/Bugzilla/WebService/Server/XMLRPC.pm b/Bugzilla/WebService/Server/XMLRPC.pm
index 94b751c9d..69ba4c0d8 100644
--- a/Bugzilla/WebService/Server/XMLRPC.pm
+++ b/Bugzilla/WebService/Server/XMLRPC.pm
@@ -108,6 +108,9 @@ sub make_response {
sub handle_login {
my ($self, $classes, $action, $uri, $method) = @_;
my $class = $classes->{$uri};
+ if (!$class) {
+ ThrowCodeError('unknown_method', { method => $method eq 'methodName' ? '' : '.' . $method });
+ }
my $full_method = $uri . "." . $method;
# Only allowed methods to be used from the module's whitelist
my $file = $class;