Author: jonesde
Date: Tue Feb 10 15:16:00 2009
New Revision: 742991
URL:
http://svn.apache.org/viewvc?rev=742991&view=revLog:
Fixed changes from rev 742983 that caused a double question mark (?) for request-redirect responses with redirect-parameter sub-elements by changing the code for the case without redirect-parameter sub-elements to have a question mark, which was missing
Modified:
ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java
Modified: ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java?rev=742991&r1=742990&r2=742991&view=diff==============================================================================
--- ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java (original)
+++ ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java Tue Feb 10 15:16:00 2009
@@ -738,7 +738,7 @@
if (requestResponse == null || requestResponse.redirectParameterMap.size() == 0) {
Map<String, Object> urlParams = UtilHttp.getUrlOnlyParameterMap(request);
String queryString = UtilHttp.urlEncodeArgs(urlParams, false);
- return queryString;
+ return "?" + queryString;
} else {
StringBuilder queryString = new StringBuilder();
queryString.append("?");
@@ -767,7 +767,7 @@
public String makeLinkWithQueryString(HttpServletRequest request, HttpServletResponse response, String url, ConfigXMLReader.RequestResponse requestResponse) {
String initialLink = this.makeLink(request, response, url);
String queryString = this.makeQueryString(request, requestResponse);
- return initialLink + "?" + queryString;
+ return initialLink + queryString;
}
public String makeLink(HttpServletRequest request, HttpServletResponse response, String url) {