mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/erb.rb (ERB::Util.html_escape): fix r36687: call to_s before
passing it to CGI.escapeHTML. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4e75451a16
commit
e9969414bb
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Tue Aug 14 10:38:17 2012 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* lib/erb.rb (ERB::Util.html_escape): fix r36687: call to_s before
|
||||
passing it to CGI.escapeHTML.
|
||||
|
||||
Mon Aug 13 13:13:19 2012 Shugo Maeda <shugo@ruby-lang.org>
|
||||
|
||||
* lib/erb.rb (ERB::Util.html_escape): use CGI.escape to escape
|
||||
|
|
|
@ -911,7 +911,7 @@ class ERB
|
|||
# is a > 0 & a < 10?
|
||||
#
|
||||
def html_escape(s)
|
||||
CGI.escapeHTML(s)
|
||||
CGI.escapeHTML(s.to_s)
|
||||
end
|
||||
alias h html_escape
|
||||
module_function :h
|
||||
|
|
Loading…
Reference in a new issue