Author: adrianc
Date: Tue Jan 6 12:30:10 2009
New Revision: 732100
URL:
http://svn.apache.org/viewvc?rev=732100&view=revLog:
Improved version of previous commit.
Modified:
ofbiz/trunk/framework/widget/src/org/ofbiz/widget/html/HtmlFormRenderer.java
Modified: ofbiz/trunk/framework/widget/src/org/ofbiz/widget/html/HtmlFormRenderer.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/html/HtmlFormRenderer.java?rev=732100&r1=732099&r2=732100&view=diff==============================================================================
--- ofbiz/trunk/framework/widget/src/org/ofbiz/widget/html/HtmlFormRenderer.java (original)
+++ ofbiz/trunk/framework/widget/src/org/ofbiz/widget/html/HtmlFormRenderer.java Tue Jan 6 12:30:10 2009
@@ -2229,13 +2229,12 @@
protected String appendExternalLoginKey(String target) {
String result = target;
- String externalLoginKey = (String) this.request.getAttribute("externalLoginKey");
- if (UtilValidate.isNotEmpty(externalLoginKey)) {
- if (target.contains("?")) {
- result = target + "&externalLoginKey=" + externalLoginKey;
- } else {
- result = target + "?externalLoginKey=" + externalLoginKey;
- }
+ String sessionId = ";jsessionid=" + request.getSession().getId();
+ int questionIndex = target.indexOf("?");
+ if (questionIndex == -1) {
+ result += sessionId;
+ } else {
+ result.replace("?", sessionId + "?");
}
return result;
}