diff options
Diffstat (limited to 'lib/cgi/html.rb')
-rw-r--r-- | lib/cgi/html.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/cgi/html.rb b/lib/cgi/html.rb index 02d847ebd3..1543943320 100644 --- a/lib/cgi/html.rb +++ b/lib/cgi/html.rb @@ -30,10 +30,10 @@ class CGI attributes.each do|name, value| next unless value s << " " - s << CGI::escapeHTML(name.to_s) + s << CGI.escapeHTML(name.to_s) if value != true s << '="' - s << CGI::escapeHTML(value.to_s) + s << CGI.escapeHTML(value.to_s) s << '"' end end @@ -423,7 +423,7 @@ class CGI buf << super(attributes) if pretty - CGI::pretty(buf, pretty) + CGI.pretty(buf, pretty) else buf end |