|
|
@ -769,11 +769,11 @@ public final class httpd implements serverHandler {
|
|
|
|
} else if (s.charAt(pos) == '%') {
|
|
|
|
} else if (s.charAt(pos) == '%') {
|
|
|
|
// start change by [FB]: added UTF-escapes
|
|
|
|
// start change by [FB]: added UTF-escapes
|
|
|
|
if (s.charAt(pos + 1) == 'u') { // UTF-16 escape
|
|
|
|
if (s.charAt(pos + 1) == 'u') { // UTF-16 escape
|
|
|
|
pos += 6;
|
|
|
|
|
|
|
|
baos.write(Integer.parseInt(s.substring(pos + 2, pos + 6), 16));
|
|
|
|
baos.write(Integer.parseInt(s.substring(pos + 2, pos + 6), 16));
|
|
|
|
|
|
|
|
pos += 6;
|
|
|
|
} else { // normal escape
|
|
|
|
} else { // normal escape
|
|
|
|
pos += 3;
|
|
|
|
|
|
|
|
baos.write(Integer.parseInt(s.substring(pos + 1, pos + 3), 16));
|
|
|
|
baos.write(Integer.parseInt(s.substring(pos + 1, pos + 3), 16));
|
|
|
|
|
|
|
|
pos += 3;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// end change by [FB]
|
|
|
|
// end change by [FB]
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|