Author: trong.tran
Date: 2011-12-29 01:53:16 -0500 (Thu, 29 Dec 2011)
New Revision: 8269
Modified:
portal/trunk/component/web/security/src/main/java/org/exoplatform/web/security/PortalLoginController.java
Log:
GTNPORTAL-2318 the initialURI need to be encoded during transition between login
processes
Modified:
portal/trunk/component/web/security/src/main/java/org/exoplatform/web/security/PortalLoginController.java
===================================================================
---
portal/trunk/component/web/security/src/main/java/org/exoplatform/web/security/PortalLoginController.java 2011-12-24
00:32:24 UTC (rev 8268)
+++
portal/trunk/component/web/security/src/main/java/org/exoplatform/web/security/PortalLoginController.java 2011-12-29
06:53:16 UTC (rev 8269)
@@ -28,6 +28,7 @@
import org.gatein.wci.security.WCILoginController;
import java.io.IOException;
+import java.net.URLEncoder;
import javax.servlet.ServletException;
import javax.servlet.http.Cookie;
@@ -91,7 +92,7 @@
}
//
- String redirectURI = req.getContextPath() + "/dologin?initialURI=" +
uri;
+ String redirectURI = req.getContextPath() + "/dologin?initialURI=" +
URLEncoder.encode(uri, "UTF-8");
resp.sendRedirect(resp.encodeRedirectURL(redirectURI));
}
}
Show replies by date