]> granicus.if.org Git - apache/commitdiff
Fix my typo (I invented the silly constant, you would expect me to recall it.)
authorWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 23 Aug 2001 22:19:49 +0000 (22:19 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 23 Aug 2001 22:19:49 +0000 (22:19 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90594 13f79535-47bb-0310-9956-ffa450edef68

server/core.c

index 9f18233082e4de0af7bdeda5dbf803d1ee7a349b..13b4be99871153fb3a0e26ee6c03c03bf2963ca0 100644 (file)
@@ -2911,10 +2911,10 @@ AP_DECLARE_NONSTD(int) ap_core_translate(request_rec *r)
        && (r->server->path[r->server->pathlen - 1] == '/'
            || r->uri[r->server->pathlen] == '/'
            || r->uri[r->server->pathlen] == '\0')) {
-        if (apr_filepath_merge(r->filename, conf->ap_document_root,
+        if (apr_filepath_merge(&r->filename, conf->ap_document_root,
                               r->uri + r->server->pathlen, 
                                APR_FILEPATH_TRUENAME 
-                             | APR_SECUREROOT_TEST, r->pool)
+                             | APR_FILEPATH_SECUREROOT, r->pool)
                     != APR_SUCCESS) {
             return HTTP_FORBIDDEN;
         }
@@ -2926,10 +2926,10 @@ AP_DECLARE_NONSTD(int) ap_core_translate(request_rec *r)
          * /'s in a row.  This happens under windows when the document
          * root ends with a /
          */
-        if (apr_filepath_merge(r->filename, conf->ap_document_root,
-                               r->uri + (*(r->uri) == '/') ? 1 : 0, 
-                               APR_FILEPATH_TRUENAME 
-                             | APR_SECUREROOT_TEST, r->pool)
+        if (apr_filepath_merge(&r->filename, conf->ap_document_root,
+                               r->uri + ((*(r->uri) == '/') ? 1 : 0),
+                               APR_FILEPATH_TRUENAME
+                             | APR_FILEPATH_SECUREROOT, r->pool)
                     != APR_SUCCESS) {
             return HTTP_FORBIDDEN;
         }