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 --- extensions/Example/lib/WebService.pm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'extensions/Example/lib/WebService.pm') diff --git a/extensions/Example/lib/WebService.pm b/extensions/Example/lib/WebService.pm index c8c120616..d8a96b5f5 100644 --- a/extensions/Example/lib/WebService.pm +++ b/extensions/Example/lib/WebService.pm @@ -13,6 +13,11 @@ use warnings; use parent qw(Bugzilla::WebService); use Bugzilla::Error; +use constant PUBLIC_METHODS => qw( + hello + throw_an_error +); + # This can be called as Example.hello() from the WebService. sub hello { return 'Hello!'; } -- cgit v1.2.3-24-g4f1b