diff options
author | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-04-04 03:26:01 +0000 |
---|---|---|
committer | kou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-04-04 03:26:01 +0000 |
commit | 76eee627fbf1a16df016388f89068ba6d7291665 (patch) | |
tree | 3ae65131f9113fd726af14bc4d7c51dc045a02ba | |
parent | b6d8eb660a8743a722654d391b12b2638b0cd4b2 (diff) | |
download | ruby-76eee627fbf1a16df016388f89068ba6d7291665.tar.gz |
rexml: Fix a XPath bug of $variable
[Bug #14600]
* lib/rexml/functions.rb: Fix a bug that "$variable" returns
node instead of ndoe set.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | lib/rexml/xpath_parser.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rexml/xpath_parser.rb b/lib/rexml/xpath_parser.rb index a4f5d2508a..6a32a06440 100644 --- a/lib/rexml/xpath_parser.rb +++ b/lib/rexml/xpath_parser.rb @@ -375,7 +375,7 @@ module REXML when :variable var_name = path_stack.shift - return @variables[ var_name ] + return [@variables[var_name]] # :and, :or, :eq, :neq, :lt, :lteq, :gt, :gteq # TODO: Special case for :or and :and -- not evaluate the right |