replace Java 5.0 method with 1.4 equivalent
authorgilbert <gilbert@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Wed, 5 Oct 2005 14:24:00 +0000 (14:24 +0000)
committergilbert <gilbert@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Wed, 5 Oct 2005 14:24:00 +0000 (14:24 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@1870 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/edu/internet2/middleware/shibboleth/serviceprovider/AssertionConsumerServlet.java

index a7c14e5..c3d36d1 100644 (file)
@@ -162,7 +162,7 @@ public class AssertionConsumerServlet extends HttpServlet {
                                        SAMLResponse attributeResponse = session.getAttributeResponse();
                                        outputStream.print(attributeResponse.toString());
                                } else {
-                    if (target.contains(":")) {
+                    if (target.indexOf(':')>0) {
                         // Ordinary URL target
                         response.sendRedirect(target+"?"+SESSIONPARM+"="+sessionId);
                     } else {