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); } }