aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-05-06 18:10:13 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-05-06 18:10:13 +0000
commit8a41ea4588f87e963a467305a6757381b6387ca5 (patch)
treef29d2485115d26c0ccffdbece36aee9680b38bad
parent409bc0970aa6145dfaeb6d79363a74e0244002a0 (diff)
downloadrails-8a41ea4588f87e963a467305a6757381b6387ca5.tar.gz
rails-8a41ea4588f87e963a467305a6757381b6387ca5.tar.bz2
rails-8a41ea4588f87e963a467305a6757381b6387ca5.zip
Only gsub on a string
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1292 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r--actionpack/lib/action_controller/vendor/html-scanner/html/node.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/vendor/html-scanner/html/node.rb b/actionpack/lib/action_controller/vendor/html-scanner/html/node.rb
index 2d32962ba8..e6362655e8 100644
--- a/actionpack/lib/action_controller/vendor/html-scanner/html/node.rb
+++ b/actionpack/lib/action_controller/vendor/html-scanner/html/node.rb
@@ -277,7 +277,7 @@ module HTML#:nodoc:
"</#{@name}>"
else
s = "<#{@name}"
- @attributes.each { |k,v| s << " #{k}='#{v.gsub(/'/,"\\\\'")}'" }
+ @attributes.each { |k,v| s << " #{k}='#{v.to_s.gsub(/'/,"\\\\'")}'" }
s << " /" if @closing == :self
s << ">"
@children.each { |child| s << child.to_s }