diff options
author | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-11-19 09:08:10 +0000 |
---|---|---|
committer | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-11-19 09:08:10 +0000 |
commit | d7b8cbbaf3991da0f34798217978e216e39acf18 (patch) | |
tree | e30154402cc690bceedddc8e6603060452455322 /lib/cgi.rb | |
parent | 2dae3d23d20a4d94b17ad4c479fcd12dba22ac7d (diff) |
merge revision(s) 25230:25233:
* lib/cgi.rb (CGI.unescapeHTML): fix for hex values 80-FF,
single-byte hex entity encodings from 80-FF are valid HTML.
[ruby-core:25702]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@25856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/cgi.rb')
-rw-r--r-- | lib/cgi.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cgi.rb b/lib/cgi.rb index c999503a59..6d299798e6 100644 --- a/lib/cgi.rb +++ b/lib/cgi.rb @@ -385,7 +385,7 @@ class CGI end end when /\A#x([0-9a-f]+)\z/ni then - if $1.hex < 256 + if $1.hex < 128 $1.hex.chr else if $1.hex < 65536 and ($KCODE[0] == ?u or $KCODE[0] == ?U) |