[jboss-cvs] jboss-portal/portlet/src/main/org/jboss/portal/portlet/impl ...
Julien Viet
julien at jboss.com
Sat Aug 12 08:47:51 EDT 2006
User: julien
Date: 06/08/12 08:47:51
Modified: portlet/src/main/org/jboss/portal/portlet/impl Tag:
JBoss_Portal_Branch_2_2 ActionResponseImpl.java
Log:
JBPORTAL-979 : ActionResponse.sendRedirect(String location) should work with HTTPS
Revision Changes Path
No revision
No revision
1.13.4.2 +2 -2 jboss-portal/portlet/src/main/org/jboss/portal/portlet/impl/Attic/ActionResponseImpl.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: ActionResponseImpl.java
===================================================================
RCS file: /cvsroot/jboss/jboss-portal/portlet/src/main/org/jboss/portal/portlet/impl/Attic/ActionResponseImpl.java,v
retrieving revision 1.13.4.1
retrieving revision 1.13.4.2
diff -u -b -r1.13.4.1 -r1.13.4.2
--- ActionResponseImpl.java 10 Jan 2006 15:00:27 -0000 1.13.4.1
+++ ActionResponseImpl.java 12 Aug 2006 12:47:51 -0000 1.13.4.2
@@ -38,7 +38,7 @@
/**
* @author <a href="mailto:julien at jboss.org">Julien Viet</a>
- * @version $Revision: 1.13.4.1 $
+ * @version $Revision: 1.13.4.2 $
*/
public class ActionResponseImpl extends PortletResponseImpl implements ActionResponse
{
@@ -124,7 +124,7 @@
// do something more clever than simply returning
return;
}
- if (!location.startsWith("http://") && !location.startsWith("/"))
+ if (!location.startsWith("http://") && !location.startsWith("/") && !location.startsWith("https://"))
{
throw new IllegalArgumentException("No relative urls are accepted");
}
More information about the jboss-cvs-commits
mailing list