Project

General

Profile

Actions

Bug #17057

closed

CGI different behaviour with C vs Ruby version

Added by ahorek (Pavel Rosický) over 4 years ago. Updated almost 4 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:99389]

Description

irb(main):001:0> require 'cgi' # don't load a native extension
irb(main):002:0> CGI.unescapeHTML("\xFF&")
=> ArgumentError (invalid byte sequence in UTF-8)

there's a fix on upstream https://github.com/ruby/cgi/pull/2

Updated by jeremyevans0 (Jeremy Evans) almost 4 years ago

  • Status changed from Open to Closed

I've merged the patch in the pull request after adding a test for it: https://github.com/ruby/cgi/pull/4

Actions

Also available in: Atom PDF

Like0
Like0