Project

General

Profile

This project is closed and read-only.

Actions

Backport #8183

closed

CGI.unescapeHTML does not decode あ

Backport #8183: CGI.unescapeHTML does not decode あ

Added by znz (Kazuhiro NISHIYAMA) over 13 years ago. Updated over 13 years ago.


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,

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

Updated by zzak (zzak _) over 13 years ago Actions #1 [ruby-dev:47227]

  • Status changed from Open to Assigned

Updated by xibbar (Takeyuki FUJIOKA) over 13 years ago Actions #2 [ruby-dev:47239]

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

Updated by xibbar (Takeyuki FUJIOKA) over 13 years ago Actions #3

  • 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]

Updated by nagachika (Tomoyuki Chikanaga) over 13 years ago Actions #4

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

Updated by nagachika (Tomoyuki Chikanaga) over 13 years ago Actions #5

  • 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]

Actions

Also available in: PDF Atom