svn commit: r614279 - /ofbiz/trunk/applications/ecommerce/webapp/ecommerce/WEB-INF/actions/login.bsh

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r614279 - /ofbiz/trunk/applications/ecommerce/webapp/ecommerce/WEB-INF/actions/login.bsh

sichen
Author: sichen
Date: Tue Jan 22 10:18:38 2008
New Revision: 614279

URL: http://svn.apache.org/viewvc?rev=614279&view=rev
Log:
Fix bug which occurs when login page loads again with PASSWORD already in the parameters.  The presence of two PASSWORDs will cause subsequent login attempts to fail.  Solution is to strip PASSWORD as done for USERNAME.

Modified:
    ofbiz/trunk/applications/ecommerce/webapp/ecommerce/WEB-INF/actions/login.bsh

Modified: ofbiz/trunk/applications/ecommerce/webapp/ecommerce/WEB-INF/actions/login.bsh
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/ecommerce/webapp/ecommerce/WEB-INF/actions/login.bsh?rev=614279&r1=614278&r2=614279&view=diff
==============================================================================
--- ofbiz/trunk/applications/ecommerce/webapp/ecommerce/WEB-INF/actions/login.bsh (original)
+++ ofbiz/trunk/applications/ecommerce/webapp/ecommerce/WEB-INF/actions/login.bsh Tue Jan 22 10:18:38 2008
@@ -26,7 +26,7 @@
 
 previousParams = session.getAttribute("_PREVIOUS_PARAMS_");
 if (previousParams != null && previousParams.length() > 0) {
-    previousParams = UtilHttp.stripNamedParamsFromQueryString(previousParams, UtilMisc.toList("USERNAME"));
+    previousParams = UtilHttp.stripNamedParamsFromQueryString(previousParams, UtilMisc.toList("USERNAME", "PASSWORD"));
     previousParams = "?" + previousParams;
 } else {
     previousParams = "";