From 523da85c117562a9dd61b0beea6eb634a553a3a0 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Thu, 25 Nov 2010 21:38:06 +0000 Subject: [PATCH] Fixed bug #53304 (quot_print_decode does not handle lower-case hex digits) --- NEWS | 2 ++ ext/iconv/tests/bug53304.phpt | 13 +++++++++++++ ext/standard/quot_print.c | 2 +- 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 ext/iconv/tests/bug53304.phpt diff --git a/NEWS b/NEWS index 3aaa9a7d47..da02f609c8 100644 --- a/NEWS +++ b/NEWS @@ -7,6 +7,8 @@ - Core: . Fixed extract() to do not overwrite $GLOBALS and $this when using EXTR_OVERWRITE. (jorto at redhat dot com) + . Fixed bug #53304 (quot_print_decode does not handle lower-case hex digits). + (Ilia, daniel dot mueller at inexio dot net) . Fixed bug #47168 (printf of floating point variable prints maximum of 40 decimal places). (Ilia) . Fixed bug #46587 (mt_rand() does not check that max is greater than min). diff --git a/ext/iconv/tests/bug53304.phpt b/ext/iconv/tests/bug53304.phpt new file mode 100644 index 0000000000..7eb6c4109c --- /dev/null +++ b/ext/iconv/tests/bug53304.phpt @@ -0,0 +1,13 @@ +--TEST-- +Bug #53304 (quot_print_decode does not handle lower-case hex digits) +--SKIPIF-- + +--FILE-- + +--EXPECT-- +Nachricht über Kontaktformular www.inexio.net +Nachricht über Kontaktformular www.inexio.net diff --git a/ext/standard/quot_print.c b/ext/standard/quot_print.c index 0bee54fdbb..030e9178ae 100644 --- a/ext/standard/quot_print.c +++ b/ext/standard/quot_print.c @@ -68,7 +68,7 @@ PHPAPI unsigned char *php_quot_print_decode(const unsigned char *str, size_t len 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 64, 64, 64, 64, 64, 64, 64, 10, 11, 12, 13, 14, 15, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, - 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, + 64, 10, 11, 12, 13, 14, 15, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, -- 2.40.0