Skip to content

Commit bc670fc

Browse files
committed
Implement cgi/escape as an actual file you can require
1 parent 4b7ba76 commit bc670fc

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

lib/mri/cgi/util.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ def escapeHTML(string)
5454
string.gsub(/['&\"<>]/, TABLE_FOR_ESCAPE_HTML__)
5555
end
5656

57-
begin
58-
require 'cgi/escape'
59-
rescue LoadError
60-
end
57+
#begin
58+
# require 'cgi/escape'
59+
#rescue LoadError
60+
#end
6161

6262
# Unescape a string that has been HTML-escaped
6363
# CGI::unescapeHTML("Usage: foo &quot;bar&quot; &lt;baz&gt;")

lib/truffle/cgi/escape.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# The cgi/escape module is C extension replacements for methods that already exist in pure Ruby
2+
3+
require 'cgi/util'

0 commit comments

Comments
 (0)