You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by co...@apache.org on 2022/06/01 12:38:03 UTC

svn commit: r1901505 - in /httpd/httpd/branches/2.4.x: ./ modules/arch/win32/mod_isapi.c

Author: covener
Date: Wed Jun  1 12:38:03 2022
New Revision: 1901505

URL: http://svn.apache.org/viewvc?rev=1901505&view=rev
Log:
Merge r1901504 from trunk:

mod_isapi: use consistent filename

Modified:
    httpd/httpd/branches/2.4.x/   (props changed)
    httpd/httpd/branches/2.4.x/modules/arch/win32/mod_isapi.c

Propchange: httpd/httpd/branches/2.4.x/
------------------------------------------------------------------------------
  Merged /httpd/httpd/trunk:r1901504

Modified: httpd/httpd/branches/2.4.x/modules/arch/win32/mod_isapi.c
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/modules/arch/win32/mod_isapi.c?rev=1901505&r1=1901504&r2=1901505&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/modules/arch/win32/mod_isapi.c (original)
+++ httpd/httpd/branches/2.4.x/modules/arch/win32/mod_isapi.c Wed Jun  1 12:38:03 2022
@@ -976,11 +976,11 @@ static int APR_THREAD_FUNC regfnServerSu
             return 0;
         }
 
-        len = (apr_uint32_t)strlen(r->filename);
+        len = (apr_uint32_t)strlen(subreq->filename);
 
         if ((subreq->finfo.filetype == APR_DIR)
               && (!subreq->path_info)
-              && (file[len - 1] != '/'))
+              && (subreq->filename[len - 1] != '/'))
             file = apr_pstrcat(cid->r->pool, subreq->filename, "/", NULL);
         else
             file = apr_pstrcat(cid->r->pool, subreq->filename,