|
Revision 6764, 414 bytes
(checked in by bitsweat, 1 year ago)
|
Parse url-encoded and multipart requests ourselves instead of delegating to CGI.
|
| Line | |
|---|
| 1 |
require 'action_controller/cgi_ext/stdinput' |
|---|
| 2 |
require 'action_controller/cgi_ext/query_extension' |
|---|
| 3 |
require 'action_controller/cgi_ext/cookie' |
|---|
| 4 |
require 'action_controller/cgi_ext/session' |
|---|
| 5 |
|
|---|
| 6 |
class CGI |
|---|
| 7 |
include ActionController::CgiExt::Stdinput |
|---|
| 8 |
|
|---|
| 9 |
class << self |
|---|
| 10 |
alias :escapeHTML_fail_on_nil :escapeHTML |
|---|
| 11 |
|
|---|
| 12 |
def escapeHTML(string) |
|---|
| 13 |
escapeHTML_fail_on_nil(string) unless string.nil? |
|---|
| 14 |
end |
|---|
| 15 |
end |
|---|
| 16 |
end |
|---|