From: William A. Rowe Jr Date: Fri, 24 Aug 2001 00:59:08 +0000 (+0000) Subject: I'm still not 100% certain on this test. Regardless, it doesn't impact X-Git-Tag: 2.0.25~105 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4f3d0d2dfe29c9478aacd42d4b773d5e15c1c75d;p=apache I'm still not 100% certain on this test. Regardless, it doesn't impact 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 --- diff --git a/server/util.c b/server/util.c index eb42a28508..6e38fafbed 100644 --- a/server/util.c +++ b/server/util.c @@ -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;