[jboss-cvs] jboss-portal/portlet/src/main/org/jboss/portal/portlet/impl/jsr168 ...
Julien Viet
julien at jboss.com
Sat Aug 12 08:46:20 EDT 2006
User: julien
Date: 06/08/12 08:46:20
Modified: portlet/src/main/org/jboss/portal/portlet/impl/jsr168
ActionResponseImpl.java
Log:
JBPORTAL-979 : ActionResponse.sendRedirect(String location) should work with HTTPS
Revision Changes Path
1.11 +2 -2 jboss-portal/portlet/src/main/org/jboss/portal/portlet/impl/jsr168/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/jsr168/ActionResponseImpl.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -b -r1.10 -r1.11
--- ActionResponseImpl.java 31 Jul 2006 19:29:53 -0000 1.10
+++ ActionResponseImpl.java 12 Aug 2006 12:46:20 -0000 1.11
@@ -41,7 +41,7 @@
/**
* @author <a href="mailto:julien at jboss.org">Julien Viet</a>
- * @version $Revision: 1.10 $
+ * @version $Revision: 1.11 $
*/
public class ActionResponseImpl extends PortletResponseImpl implements ActionResponse
{
@@ -125,7 +125,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