You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by ca...@apache.org on 2005/08/26 15:04:58 UTC
svn commit: r240231 - /xerces/c/trunk/src/xercesc/util/XMLUri.cpp
Author: cargilld
Date: Fri Aug 26 06:04:56 2005
New Revision: 240231
URL: http://svn.apache.org/viewcvs?rev=240231&view=rev
Log:
Fix for xercesc-896.
Modified:
xerces/c/trunk/src/xercesc/util/XMLUri.cpp
Modified: xerces/c/trunk/src/xercesc/util/XMLUri.cpp
URL: http://svn.apache.org/viewcvs/xerces/c/trunk/src/xercesc/util/XMLUri.cpp?rev=240231&r1=240230&r2=240231&view=diff
==============================================================================
--- xerces/c/trunk/src/xercesc/util/XMLUri.cpp (original)
+++ xerces/c/trunk/src/xercesc/util/XMLUri.cpp Fri Aug 26 06:04:56 2005
@@ -433,7 +433,7 @@
int queryIdx = XMLString::indexOf(trimmedUriSpec, chQuestion);
int fragmentIdx = XMLString::indexOf(trimmedUriSpec, chPound);
- if ((colonIdx == 0) ||
+ if ((colonIdx <= 0) ||
(colonIdx > slashIdx && slashIdx != -1) ||
(colonIdx > queryIdx && queryIdx != -1) ||
(colonIdx > fragmentIdx && fragmentIdx != -1))
@@ -2052,7 +2052,7 @@
int queryIdx = XMLString::indexOf(trimmedUriSpec, chQuestion);
int fragmentIdx = XMLString::indexOf(trimmedUriSpec, chPound);
- if ((colonIdx == 0) ||
+ if ((colonIdx <= 0) ||
(colonIdx > slashIdx && slashIdx != -1) ||
(colonIdx > queryIdx && queryIdx != -1) ||
(colonIdx > fragmentIdx && fragmentIdx != -1))
@@ -2152,7 +2152,7 @@
int queryIdx = XMLString::indexOf(trimmedUriSpec, chQuestion);
int fragmentIdx = XMLString::indexOf(trimmedUriSpec, chPound);
- if ((colonIdx == 0) ||
+ if ((colonIdx <= 0) ||
(colonIdx > slashIdx && slashIdx != -1) ||
(colonIdx > queryIdx && queryIdx != -1) ||
(colonIdx > fragmentIdx && fragmentIdx != -1))
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org