Project

General

Profile

Backport #8183

CGI.unescapeHTML does not decode あ

Added by znz (Kazuhiro NISHIYAMA) about 7 years ago. Updated almost 7 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,

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

Updated by zzak (Zachary Scott) almost 7 years ago

  • Status changed from Open to Assigned

Updated by xibbar (Takeyuki FUJIOKA) almost 7 years ago

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

#3

Updated by xibbar (Takeyuki FUJIOKA) almost 7 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 nagachika (Tomoyuki Chikanaga) almost 7 years ago

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

Updated by nagachika (Tomoyuki Chikanaga) almost 7 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