diff options
Diffstat (limited to 'actionpack/lib/action_controller/cgi_ext.rb')
-rw-r--r-- | actionpack/lib/action_controller/cgi_ext.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/cgi_ext.rb b/actionpack/lib/action_controller/cgi_ext.rb index f4c8be2f76..1934ee704a 100644 --- a/actionpack/lib/action_controller/cgi_ext.rb +++ b/actionpack/lib/action_controller/cgi_ext.rb @@ -1,8 +1,18 @@ +require 'action_controller/cgi_ext/stdinput' require 'action_controller/cgi_ext/parameters' require 'action_controller/cgi_ext/query_extension' require 'action_controller/cgi_ext/cookie' require 'action_controller/cgi_ext/session' class CGI #:nodoc: + include ActionController::CgiExt::Stdinput include ActionController::CgiExt::Parameters + + class << self + alias :escapeHTML_fail_on_nil :escapeHTML + + def escapeHTML(string) + escapeHTML_fail_on_nil(string) unless string.nil? + end + end end |