Project

General

Profile

Backport #8183

CGI.unescapeHTML does not decode あ

Added by znz (Kazuhiro NISHIYAMA) over 6 years ago. Updated over 6 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 5865e760
Added by xibbar (Takeyuki FUJIOKA) over 6 years ago

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

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 40181
Added by xibbar (Takeyuki FUJIOKA) over 6 years ago

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

Revision 40181
Added by xibbar (Takeyuki FUJIOKA) over 6 years ago

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

Revision 40181
Added by xibbar (Takeyuki FUJIOKA) over 6 years ago

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

Revision 40181
Added by xibbar (Takeyuki FUJIOKA) over 6 years ago

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

Revision 40181
Added by xibbar (Takeyuki FUJIOKA) over 6 years ago

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

Revision 40181
Added by xibbar (Takeyuki FUJIOKA) over 6 years ago

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

Revision 3a645975
Added by nagachika (Tomoyuki Chikanaga) over 6 years ago

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

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

[Bug #8183]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@40315 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 40315
Added by nagachika (Tomoyuki Chikanaga) over 6 years ago

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

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

[Bug #8183]

History

Updated by zzak (Zachary Scott) over 6 years ago

  • Status changed from Open to Assigned

Updated by xibbar (Takeyuki FUJIOKA) over 6 years ago

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

#3

Updated by xibbar (Takeyuki FUJIOKA) over 6 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) over 6 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) over 6 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