]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
ABR fix
authorwessels <>
Thu, 28 Nov 1996 14:54:52 +0000 (14:54 +0000)
committerwessels <>
Thu, 28 Nov 1996 14:54:52 +0000 (14:54 +0000)
src/url.cc

index 74464487a6f6fa6fab5dc599f5b2c1d9255c8e8f..16a20ae12fbc3d9e0fca657800a84adceb784ffe 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: url.cc,v 1.48 1996/11/26 23:22:19 wessels Exp $
+ * $Id: url.cc,v 1.49 1996/11/28 07:54:52 wessels Exp $
  *
  * DEBUG: section 23    URL Parsing
  * AUTHOR: Duane Wessels
@@ -241,7 +241,7 @@ urlParse(method_t method, char *url)
     /* remove trailing slashes from FTP URLs */
     if (protocol == PROTO_FTP) {
        t = urlpath + strlen(urlpath);
-       while (*(--t) == '/')
+       while (t > urlpath && *(--t) == '/')
            *t = '\0';
     }
     request = get_free_request_t();