summaryrefslogtreecommitdiff
path: root/lib/xmlrpc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/xmlrpc')
-rw-r--r--lib/xmlrpc/parser.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/xmlrpc/parser.rb b/lib/xmlrpc/parser.rb
index d078de2f4b..d8e91b0098 100644
--- a/lib/xmlrpc/parser.rb
+++ b/lib/xmlrpc/parser.rb
@@ -133,7 +133,7 @@ module XMLRPC
hash.delete "___class___"
hash.each {|key, value|
- obj.instance_variable_set("@#{ key }", value) if key =~ /^([\w_][\w_0-9]*)$/
+ obj.instance_variable_set("@#{ key }", value) if key =~ /^([a-zA-Z_]\w*)$/
}
obj
rescue