snichol 2002/10/11 12:21:41 Modified: java/src/org/apache/soap/rpc SOAPContext.java Log: Fix an off-by-1 bug. See bugzilla 12745: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12745 Revision Changes Path 1.12 +1 -1 xml-soap/java/src/org/apache/soap/rpc/SOAPContext.java Index: SOAPContext.java =================================================================== RCS file: /home/cvs/xml-soap/java/src/org/apache/soap/rpc/SOAPContext.java,v retrieving revision 1.11 retrieving revision 1.12 diff -u -r1.11 -r1.12 --- SOAPContext.java 5 Sep 2002 16:50:51 -0000 1.11 +++ SOAPContext.java 11 Oct 2002 19:21:41 -0000 1.12 @@ -211,7 +211,7 @@ String cid = MimeUtils.decode(uri.substring(4)); // References are not supposed to be inside brackets, but be // tolerant. - if (cid.charAt(0) != '<' || cid.charAt(cid.length()) != '>') + if (cid.charAt(0) != '<' || cid.charAt(cid.length() - 1) != '>') cid = '<' + cid + '>'; try {
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>