aboutsummaryrefslogtreecommitdiffstats
path: root/lib/cgi.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-06-12 16:56:06 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-06-12 16:56:06 +0000
commit8db3dc39d60870e07cbdfec5e594e0f49b0733c7 (patch)
tree356b9a30124e0d1344837717aba71d50ed4b49f3 /lib/cgi.rb
parent4169e76d14556864dca6bdef05d54f89651efc0b (diff)
downloadruby-8db3dc39d60870e07cbdfec5e594e0f49b0733c7.tar.gz
* signal.c (sigexit): call rb_thread_signal_exit() instead of
rb_exit(). [ruby-dev:26347] * eval.c (rb_thread_signal_exit): a new function to exit on main thread. * eval.c (rb_thread_switch): exit status should be retrieved from ruby_errinfo. * eval.c (rb_f_exit): ensure exit(0) should call exit(EXIT_SUCCESS). * missing/mkdir.c: remove. [ruby-core:05177] * hash.c (env_aset): do not treat nil as key-removing value. [ruby-list:40865] * parse.y (method_call): allow aref expression ([]) to take a block. * parse.y (block_dup_check): a function to check duplication of a block argument and an actual block. * lib/delegate.rb (SimpleDelegator::__setobj__): need check for recursive delegation. [ruby-core:04940] * lib/cgi.rb: add underscore aliases CGI::escape_html, CGI::unescape_html, CGI::escape_element, CGI::unescape_element. [ruby-core:05058] * misc/ruby-mode.el (ruby-expr-beg): fix looking point drift. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/cgi.rb')
-rw-r--r--lib/cgi.rb14
1 files changed, 12 insertions, 2 deletions
diff --git a/lib/cgi.rb b/lib/cgi.rb
index 22544d9059..bcc3dd9001 100644
--- a/lib/cgi.rb
+++ b/lib/cgi.rb
@@ -399,7 +399,12 @@ class CGI
end
end
end
-
+ def CGI::escape_html(str)
+ escapeHTML(str)
+ end
+ def CGI::unescape_html(str)
+ unescapeHTML(str)
+ end
# Escape only the tags of certain HTML elements in +string+.
#
@@ -445,7 +450,12 @@ class CGI
string
end
end
-
+ def CGI::escape_element(str)
+ escapeElement(str)
+ end
+ def CGI::unescape_element(str)
+ unescapeElement(str)
+ end
# Format a +Time+ object as a String using the format specified by RFC 1123.
#