You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by bl...@apache.org on 2005/05/29 02:06:55 UTC
cvs commit: xml-security/c/src/utils/winutils XSECURIResolverGenericWin32.cpp
blautenb 2005/05/28 17:06:55
Modified: c/src/utils/winutils XSECURIResolverGenericWin32.cpp
Log:
Update localhost check to include an empty hostname - reported by Vincent Finn <vi...@automsoft.com> on security-dev@xml 27/5/2005
Revision Changes Path
1.12 +6 -2 xml-security/c/src/utils/winutils/XSECURIResolverGenericWin32.cpp
Index: XSECURIResolverGenericWin32.cpp
===================================================================
RCS file: /home/cvs/xml-security/c/src/utils/winutils/XSECURIResolverGenericWin32.cpp,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- XSECURIResolverGenericWin32.cpp 3 Feb 2005 13:56:22 -0000 1.11
+++ XSECURIResolverGenericWin32.cpp 29 May 2005 00:06:55 -0000 1.12
@@ -28,6 +28,9 @@
* $Id$
*
* $Log$
+ * Revision 1.12 2005/05/29 00:06:55 blautenb
+ * Update localhost check to include an empty hostname - reported by Vincent Finn <vi...@automsoft.com> on security-dev@xml 27/5/2005
+ *
* Revision 1.11 2005/02/03 13:56:22 milan
* Apache licence fix.
*
@@ -197,7 +200,8 @@
// This is a file. We only really understand if this is localhost
if (xmluri->getHost() == NULL || xmluri->getHost()[0] == chNull ||
- !XMLString::compareIString(xmluri->getHost(), XMLUni::fgLocalHostString)) {
+ !XMLString::compareIString(xmluri->getHost(), XMLUni::fgLocalHostString) ||
+ !XMLString::compareIString(xmluri->getHost(), XMLUni::fgEmptyString)) {
// Clean hex escapes
XMLCh * realPath = cleanURIEscapes(xmluri->getPath());