From 4f3d0d2dfe29c9478aacd42d4b773d5e15c1c75d Mon Sep 17 00:00:00 2001 From: "William A. Rowe Jr" Date: Fri, 24 Aug 2001 00:59:08 +0000 Subject: [PATCH] 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 --- server/util.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.50.1