summaryrefslogtreecommitdiff
path: root/lib/cgi.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/cgi.rb')
-rw-r--r--lib/cgi.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/cgi.rb b/lib/cgi.rb
new file mode 100644
index 0000000000..0c403bd19c
--- /dev/null
+++ b/lib/cgi.rb
@@ -0,0 +1,9 @@
+# frozen_string_literal: true
+
+require "cgi/escape"
+warn <<-WARNING, uplevel: Gem::BUNDLED_GEMS.uplevel if $VERBOSE
+CGI library is removed from Ruby 4.0. Please use cgi/escape instead for CGI.escape and CGI.unescape features.
+
+If you need to use the full features of CGI library, please add 'gem "cgi"' to your script
+or use Bundler to ensure you are using the cgi gem instead of this file.
+WARNING