Project

General

Profile

Actions

Bug #17057

closed

CGI different behaviour with C vs Ruby version

Added by ahorek (Pavel Rosický) about 1 year ago. Updated 8 months ago.

Status:
Closed
Priority:
Normal
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) 8 months 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