You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by wr...@apache.org on 2001/10/06 06:41:37 UTC
cvs commit: httpd-2.0/modules/mappers mod_vhost_alias.c
wrowe 01/10/05 21:41:37
Modified: modules/mappers mod_vhost_alias.c
Log:
Legibility counts for something, so does eliminating bogus ssize_t
products from pointer subtraction ;)
Revision Changes Path
1.26 +1 -1 httpd-2.0/modules/mappers/mod_vhost_alias.c
Index: mod_vhost_alias.c
===================================================================
RCS file: /home/cvs/httpd-2.0/modules/mappers/mod_vhost_alias.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- mod_vhost_alias.c 2001/02/24 11:23:31 1.25
+++ mod_vhost_alias.c 2001/10/06 04:41:37 1.26
@@ -433,7 +433,7 @@
cgi = NULL;
if (conf->cgi_root) {
cgi = strstr(r->uri, "cgi-bin/");
- if (cgi && cgi - r->uri != strspn(r->uri, "/")) {
+ if (cgi && (cgi != r->uri + strspn(r->uri, "/"))) {
cgi = NULL;
}
}