Project

General

Profile

Backport #8183

CGI.unescapeHTML does not decode あ

Added by Kazuhiro NISHIYAMA about 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
[ruby-dev:47203]

Description

数値文字参照で あ のように X が大文字の時に CGI.unescapeHTML で "あ" に戻りません。

http://www.w3.org/TR/html5/syntax.html#character-references
の Hexadecimal numeric character reference によると

which must be followed by either a "x" (U+0078) character or a "X" (U+0058) character,

となっているので、大文字でも受け付けてほしいです。

Associated revisions

Revision 40181
Added by Takeyuki FUJIOKA about 3 years ago

  • lib/cgi/util.rb (CGI::unescapeHTML): fix Hexadecimal numeric character. [Bug #8183]

Revision 40181
Added by Takeyuki FUJIOKA about 3 years ago

  • lib/cgi/util.rb (CGI::unescapeHTML): fix Hexadecimal numeric character. [Bug #8183]

Revision 40315
Added by Tomoyuki Chikanaga about 3 years ago

merge revision(s) 40181: [Backport #8183]

* lib/cgi/util.rb (CGI::unescapeHTML): fix Hexadecimal numeric character.

[Bug #8183]

History

#1 [ruby-dev:47227] Updated by Zachary Scott about 3 years ago

  • Status changed from Open to Assigned

#2 [ruby-dev:47239] Updated by Takeyuki FUJIOKA about 3 years ago

バグですね。修正しておきます。

#3 Updated by Takeyuki FUJIOKA about 3 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r40181.
Kazuhiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


  • lib/cgi/util.rb (CGI::unescapeHTML): fix Hexadecimal numeric character. [Bug #8183]

#4 Updated by Tomoyuki Chikanaga about 3 years ago

  • Status changed from Closed to Assigned
  • Assignee changed from Takeyuki FUJIOKA to Tomoyuki Chikanaga
  • Tracker changed from Bug to Backport
  • Project changed from Ruby trunk to Backport200
  • Category deleted (lib)

#5 Updated by Tomoyuki Chikanaga about 3 years ago

  • Status changed from Assigned to Closed

This issue was solved with changeset r40315.
Kazuhiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


merge revision(s) 40181: [Backport #8183]

* lib/cgi/util.rb (CGI::unescapeHTML): fix Hexadecimal numeric character.

[Bug #8183]

Also available in: Atom PDF