From 16122921b2f68b490a61cd80ae9ea5ee661ae11b Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Wed, 21 Jan 2015 20:37:49 +0000 Subject: Bug 1090275: WebServices modules should maintain a whitelist of methods that are allowed instead of allowing access to any function imported into its namespace r=dylan,a=glob --- Bugzilla/WebService/Component.pm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Bugzilla/WebService/Component.pm') diff --git a/Bugzilla/WebService/Component.pm b/Bugzilla/WebService/Component.pm index a050aef53..9f3dfb4d4 100644 --- a/Bugzilla/WebService/Component.pm +++ b/Bugzilla/WebService/Component.pm @@ -19,6 +19,10 @@ use Bugzilla::Error; use Bugzilla::WebService::Constants; use Bugzilla::WebService::Util qw(translate params_to_objects validate); +use constant PUBLIC_METHODS => qw( + create +); + use constant CREATE_MAPPED_FIELDS => { default_assignee => 'initialowner', default_qa_contact => 'initialqacontact', -- cgit v1.2.3-24-g4f1b