Commit 57337258 authored by William A. Rowe Jr's avatar William A. Rowe Jr
Browse files

  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
parent 0ee1f146
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;