lib/roda/plugins/h.rb in roda-2.27.0 vs lib/roda/plugins/h.rb in roda-2.28.0

- old
+ new

@@ -16,10 +16,10 @@ module H begin require 'cgi/escape' unless CGI.respond_to?(:escapeHTML) # work around for JRuby 9.1 CGI = Object.new - CGI.extend(::CGI::Util) + CGI.extend(defined?(::CGI::Escape) ? ::CGI::Escape : ::CGI::Util) end module InstanceMethods # HTML escape the input and return the escaped version. def h(string)