jericho 2003/03/04 19:47:25 Modified: httpclient/src/java/org/apache/commons/httpclient URI.java Log: - Fix a bug not to resolve a type of relative URI for "http://a" and "./current.html" correctly. Reported by Ivar <[EMAIL PROTECTED]> Thank you! Revision Changes Path 1.34 +6 -8 jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/URI.java Index: URI.java =================================================================== RCS file: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/URI.java,v retrieving revision 1.33 retrieving revision 1.34 diff -u -r1.33 -r1.34 --- URI.java 17 Feb 2003 04:15:32 -0000 1.33 +++ URI.java 5 Mar 2003 03:47:25 -0000 1.34 @@ -2927,10 +2927,8 @@ } else { StringBuffer buff = new StringBuffer(base.length() + relPath.length); - if (at != -1) { - buff.append(base.substring(0, at + 1)); - buff.append(relPath); - } + buff.append((at != -1) ? base.substring(0, at + 1) : "/"); + buff.append(relPath); return normalize(buff.toString().toCharArray()); } }
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
