(Jani)
- Fixed bug #45691 (Some per-dir or runtime settings may leak into other
requests). (Moriyoshi)
+- Fixed bug #45581 (htmlspecialchars() double encoding &#x hex items). (Arnaud)
- Fixed bug #45568 (ISAPI doesn't properly clear auth_digest in header).
(Patch by: navara at emclient dot com)
- Fixed bug #45556 (Return value from callback isn't freed). (Felipe)
} else {
if (*s == '#') { /* numeric entities */
s++;
- while (s < e) {
- if (!isdigit(*s++)) {
- goto encode_amp;
+ /* Hex (Z) */
+ if (*s == 'x' || *s == 'X') {
+ s++;
+ while (s < e) {
+ if (!isxdigit(*s++)) {
+ goto encode_amp;
+ }
+ }
+ /* Dec (Z)*/
+ } else {
+ while (s < e) {
+ if (!isdigit(*s++)) {
+ goto encode_amp;
+ }
}
}
} else { /* text entities */
"abc",
"abc&sfdsa",
"test+s & some more D",
- "&; & &#a; &9;",
+ "test+s & some more D",
+ "&; & &#a; &9; &#xyz;",
"&kffjadfdhsjfhjasdhffasdfas;",
"�",
"&",
string(13) "abc&sfdsa"
string(33) "test+s & some more D"
string(33) "test+s & some more D"
-string(24) "&; &amp &#a; &9;"
-string(24) "&; &amp &#a; &9;"
+string(34) "test+s & some more D"
+string(34) "test+s & some more D"
+string(35) "&; &amp &#a; &9; &#xyz;"
+string(35) "&; &amp &#a; &9; &#xyz;"
string(32) "&kffjadfdhsjfhjasdhffasdfas;"
string(32) "&kffjadfdhsjfhjasdhffasdfas;"
string(16) "&#8787978789"