martin 98/03/25 07:36:11
Modified: src/main util_uri.c
Log:
Correct the detection of an invalid port string in parse_uri_components().
Revision Changes Path
1.13 +1 -1 apache-1.3/src/main/util_uri.c
Index: util_uri.c
===================================================================
RCS file: /home/cvs/apache-1.3/src/main/util_uri.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -u -r1.12 -r1.13
--- util_uri.c 1998/03/14 04:55:04 1.12
+++ util_uri.c 1998/03/25 15:36:10 1.13
@@ -520,7 +520,7 @@
if (uri != s) {
port = strtol(uptr->port_str, &endstr, 10);
uptr->port = port;
- if (*endstr == '\0' && uptr->port == port) {
+ if (endstr == uri) {
goto deal_with_path;
}
/* Invalid characters after ':' found */