aboutsummaryrefslogtreecommitdiffstats
path: root/lib/xmlrpc/utils.rb
diff options
context:
space:
mode:
authormneumann <mneumann@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-06-19 15:47:31 +0000
committermneumann <mneumann@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-06-19 15:47:31 +0000
commit4110c8936ae6121138740e09f81c1ae3ca9ea709 (patch)
treeca410a50a42505c29e32d407f014c7d2a1695d63 /lib/xmlrpc/utils.rb
parent716f1d3cbe8cce091ea3ea0b68fcab443ee34a80 (diff)
downloadruby-4110c8936ae6121138740e09f81c1ae3ca9ea709.tar.gz
* lib/xmlrpc/utils.rb: Patch by Nobuhiro IMAI fixes the following
problem: Default value modification on Module#public_instance_methods (false -> true) breaks s.add_handler(XMLRPC::iPIMethods("sample"), MyHandler.new) style security protection. * lib/xmlrpc/client.rb: Aliased XMLRPC::Client#new2 as XMLRPC::Client#new_from_uri, and #new3 as #new_from_hash. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/xmlrpc/utils.rb')
-rw-r--r--lib/xmlrpc/utils.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/xmlrpc/utils.rb b/lib/xmlrpc/utils.rb
index d542cfe4e6..85c6bba372 100644
--- a/lib/xmlrpc/utils.rb
+++ b/lib/xmlrpc/utils.rb
@@ -131,7 +131,7 @@ module XMLRPC
def get_methods(obj, delim=".")
prefix = @prefix + delim
- obj.class.public_instance_methods.collect { |name|
+ obj.class.public_instance_methods(false).collect { |name|
[prefix + name, obj.method(name).to_proc, nil, nil]
}
end