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 2004/02/03 12:00:03 UTC
cvs commit: xml-security/c/src/utils/unixutils XSECURIResolverGenericUnix.cpp
blautenb 2004/02/03 03:00:03
Modified: c/src/utils/unixutils XSECURIResolverGenericUnix.cpp
Log:
Add Space handling to UNIX URL handling
Revision Changes Path
1.7 +10 -2 xml-security/c/src/utils/unixutils/XSECURIResolverGenericUnix.cpp
Index: XSECURIResolverGenericUnix.cpp
===================================================================
RCS file: /home/cvs/xml-security/c/src/utils/unixutils/XSECURIResolverGenericUnix.cpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- XSECURIResolverGenericUnix.cpp 26 Jan 2004 00:29:48 -0000 1.6
+++ XSECURIResolverGenericUnix.cpp 3 Feb 2004 11:00:03 -0000 1.7
@@ -71,6 +71,9 @@
* $Id$
*
* $Log$
+ * Revision 1.7 2004/02/03 11:00:03 blautenb
+ * Add Space handling to UNIX URL handling
+ *
* Revision 1.6 2004/01/26 00:29:48 blautenb
* Check for Xerces new way of handling NULL hostnames in URIs
*
@@ -104,6 +107,7 @@
XERCES_CPP_NAMESPACE_USE
#include <xsec/framework/XSECError.hpp>
+#include <xsec/utils/XSECDOMUtils.hpp>
#include <xsec/utils/unixutils/XSECBinHTTPURIInputStream.hpp>
static const XMLCh gFileScheme[] = {
@@ -228,9 +232,13 @@
if (xmluri->getHost() == NULL || xmluri->getHost()[0] == chNull ||
!XMLString::compareIString(xmluri->getHost(), XMLUni::fgLocalHostString)) {
+ // Clean hex escapes
+ XMLCh * realPath = cleanURIEscapes(xmluri->getPath());
+ ArrayJanitor<XMLCh> j_realPath(realPath);
+
// Localhost
- BinFileInputStream* retStrm = new BinFileInputStream(xmluri->getPath());
+ BinFileInputStream* retStrm = new BinFileInputStream(realPath);
if (!retStrm->getIsOpen())
{
delete retStrm;