You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bi...@apache.org on 2003/05/14 07:08:33 UTC
cvs commit: jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net URL.java
billbarker 2003/05/13 22:08:33
Modified: util/java/org/apache/tomcat/util/net URL.java
Log:
Don't search the query-string or anchor-tag for the protocol.
Fix for Bug #19904
Reported by: mpouttuclarke@yahoo.com
Revision Changes Path
1.6 +5 -1 jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/URL.java
Index: URL.java
===================================================================
RCS file: /home/cvs/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/URL.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- URL.java 11 Apr 2003 06:34:02 -0000 1.5
+++ URL.java 14 May 2003 05:08:33 -0000 1.6
@@ -159,6 +159,10 @@
newProtocol = s;
start = i + 1;
break;
+ } else if( c == '#' ) {
+ aRef = true;
+ } else if( c == '?' ) {
+ break;
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org