You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by mk...@apache.org on 2002/11/01 17:26:01 UTC
cvs commit: xml-xalan/java/src/org/apache/xml/utils URI.java
mkwan 2002/11/01 08:26:01
Modified: java/src/org/apache/xml/utils URI.java
Log:
For Bugzilla 13977. Return a good absolute URI when the urlstring
is in the form of "file:abc.xsl".
Revision Changes Path
1.8 +4 -7 xml-xalan/java/src/org/apache/xml/utils/URI.java
Index: URI.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/src/org/apache/xml/utils/URI.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- URI.java 8 Jun 2002 20:41:00 -0000 1.7
+++ URI.java 1 Nov 2002 16:26:01 -0000 1.8
@@ -421,7 +421,8 @@
int index = 0;
// check for scheme
- if (uriSpec.indexOf(':') == -1)
+ int colonIndex = uriSpec.indexOf(':');
+ if (colonIndex < 0)
{
if (p_base == null)
{
@@ -431,8 +432,8 @@
else
{
initializeScheme(uriSpec);
-
- index = m_scheme.length() + 1;
+ uriSpec = uriSpec.substring(colonIndex+1);
+ uriSpecLen = uriSpec.length();
}
// two slashes means generic URI syntax, so we get the authority
@@ -508,10 +509,6 @@
if (m_scheme == null)
{
m_scheme = p_base.getScheme();
- }
- else
- {
- return;
}
// check for authority - RFC 2396 5.2 #4
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org