joes 2003/04/30 07:53:10
Modified: c apache_request.c
Log:
Add missing 'else if' block to %uXXXX decoder
Revision Changes Path
1.25 +4 -0 httpd-apreq/c/apache_request.c
Index: apache_request.c
===================================================================
RCS file: /home/cvs/httpd-apreq/c/apache_request.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- apache_request.c 18 Apr 2003 15:58:14 -0000 1.24
+++ apache_request.c 30 Apr 2003 14:53:09 -0000 1.25
@@ -302,6 +302,10 @@
if(c < 0x80){
url[x] = c;
}
+ else if(c < 0x800) {
+ url[x] = 0xc0 | (c >> 6);
+ url[++x] = 0x80 | (c & 0x3f);
+ }
else if(c < 0x10000){
url[x] = (0xe0 | (c >> 12));
url[++x] = (0x80 | ((c >> 6) & 0x3f));