summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--lib/cgi.rb2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 28e01d9e2c..ea4301c1ea 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Sun Oct 4 22:44:03 2009 Takeyuki FUJIOKA <xibbar@ruby-lang.org>
+
+ * lib/cgi.rb (CGI.unescapeHTML): fix for hex values 80-FF,
+ single-byte hex entity encodings from 80-FF are valid HTML.
+
Sun Oct 4 19:30:54 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* marshal.c (struct {dump,load}_arg): manage with dfree, instead
diff --git a/lib/cgi.rb b/lib/cgi.rb
index 94f5dcba7b..8b367430a8 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