mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
parent
610038f3bf
commit
f61bd3ca80
3 changed files with 13 additions and 6 deletions
|
@ -90,9 +90,12 @@ module CGI::Util
|
|||
end
|
||||
end
|
||||
|
||||
begin
|
||||
require 'cgi/escape'
|
||||
rescue LoadError
|
||||
# TruffleRuby runs the pure-Ruby variant faster, do not use the C extension there
|
||||
unless RUBY_ENGINE == 'truffleruby'
|
||||
begin
|
||||
require 'cgi/escape'
|
||||
rescue LoadError
|
||||
end
|
||||
end
|
||||
|
||||
# Unescape a string that has been HTML-escaped
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue