]> granicus.if.org Git - apache/commitdiff
I'm still not 100% certain on this test. Regardless, it doesn't impact
authorWilliam A. Rowe Jr <wrowe@apache.org>
Fri, 24 Aug 2001 00:59:08 +0000 (00:59 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Fri, 24 Aug 2001 00:59:08 +0000 (00:59 +0000)
  Unix, and this was the bug that Jeff's (none the less correct) fix masked.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90601 13f79535-47bb-0310-9956-ffa450edef68

server/util.c

index eb42a28508719d5bda0036903836304145f7229a..6e38fafbed399de42da5d04aee0f9572035c9669 100644 (file)
@@ -258,8 +258,9 @@ AP_DECLARE(int) ap_strcasecmp_match(const char *str, const char *exp)
 AP_DECLARE(int) ap_os_is_path_absolute(apr_pool_t *p, const char *dir) 
 {
     const char *newpath;
+    const char *ourdir = dir;
     if (apr_filepath_root(&newpath, &dir, 0, p) != APR_SUCCESS
-            || strncmp(newpath, dir, strlen(newpath)) != 0) {
+            || strncmp(newpath, ourdir, strlen(newpath)) != 0) {
         return 0;
     }
     return 1;