diff options
author | Benoit Daloze <eregontp@gmail.com> | 2020-08-28 20:26:02 +0200 |
---|---|---|
committer | Benoit Daloze <eregontp@gmail.com> | 2020-08-28 20:26:02 +0200 |
commit | b49307c701911a713cbdb48367833d3661a4880a (patch) | |
tree | 75674a3f22bee0b347b3efbbcc160bc7a637b8e3 /spec/ruby/library/cgi | |
parent | 3dd63108b0e7551aba76eba85a459b58ec971ccb (diff) | |
download | ruby-b49307c701911a713cbdb48367833d3661a4880a.tar.gz |
Update to ruby/spec@335eb9b
Diffstat (limited to 'spec/ruby/library/cgi')
-rw-r--r-- | spec/ruby/library/cgi/unescapeHTML_spec.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/ruby/library/cgi/unescapeHTML_spec.rb b/spec/ruby/library/cgi/unescapeHTML_spec.rb index 46387d4f01..84b30c6aa6 100644 --- a/spec/ruby/library/cgi/unescapeHTML_spec.rb +++ b/spec/ruby/library/cgi/unescapeHTML_spec.rb @@ -36,4 +36,9 @@ describe "CGI.unescapeHTML" do input = "fooooooo&#" CGI.unescapeHTML(input).should == input end + + it "unescapes invalid encoding" do + input = "\xFF&" + CGI.unescapeHTML(input).should == input + end end |