You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cli-dev@httpd.apache.org by wr...@apache.org on 2004/11/21 02:15:54 UTC

svn commit: r106052 - httpd/mod_aspdotnet/trunk/Apache.Web

Author: wrowe
Date: Sat Nov 20 17:15:53 2004
New Revision: 106052

Modified:
   httpd/mod_aspdotnet/trunk/Apache.Web/Host.h
Log:

  Eliminate a cut and paste error, and be a bit more pedantic in
  testing the source string lengths (use actual not origin strings.)

  Fixes a potential bug in host table matching paths.

Submitted by: Yussef Alkhamrichi



Modified: httpd/mod_aspdotnet/trunk/Apache.Web/Host.h
==============================================================================
--- httpd/mod_aspdotnet/trunk/Apache.Web/Host.h	(original)
+++ httpd/mod_aspdotnet/trunk/Apache.Web/Host.h	Sat Nov 20 17:15:53 2004
@@ -85,11 +85,11 @@
             virtualPath = VirtualPath->Replace(L'\\', L'/');
             if (physicalPath->EndsWith(L"\\")) {
                 physicalPath
-                    = physicalPath->Substring(0, VirtualPath->get_Length() - 1);
+                    = physicalPath->Substring(0, physicalPath->get_Length() - 1);
             }
             if (virtualPath->EndsWith(L"/")) {
                 virtualPath
-                    = virtualPath->Substring(0, VirtualPath->get_Length() - 1);
+                    = virtualPath->Substring(0, virtualPath->get_Length() - 1);
             }
         }