Wednesday, 11 September 2013

CGI::escapeHTML is escaping single quote

CGI::escapeHTML is escaping single quote

I recently upgraded my Ruby 1.9.3 to 2.0.0 and had a surprise ;
CGI::escapeHTML is now escaping single quote, meaning:
CGI::escapeHTML("'")
=> "'"
The wierdest thing is that, when going to definition of escapeHTML,
everything seems fine, and copying the definition of the method give the
right result (it doesn't escape single quote)
Does anyone have a clue about this?
Thanks,

No comments:

Post a Comment