/[Apache-SVN]
ViewVC logotype

Revision 1395036


Jump to revision: Previous Next
Author: jleroux
Date: Sat Oct 6 12:53:55 2012 UTC (11 years, 6 months ago)
Changed paths: 2
Log Message:
"Applied fix from trunk for revision: 1394995" 
------------------------------------------------------------------------
r1394995 | jleroux | 2012-10-06 12:59:12 +0200 (sam., 06 oct. 2012) | 9 lines

A modified patch from  Jyoti Sharma https://issues.apache.org/jira/browse/OFBIZ-5043

When i worked with Url Rewrite Filter, i faced the following issue:-
In case of http protocol in the url, https links on th epage were not being rewritten and when their was https url, http links were not rewritten.

The issue behind this what i found is that in RequestHandler.java encodeUrl() is not called in the above given case.
So, if we place response.encodeUrl() their the issue is resolved. 

jleroux: This makes sense since we are still in the "if (encode) {" block. I just noticed that response != null was checked above so I placed the same check before encoding
------------------------------------------------------------------------


Changed paths

Path Details
Directoryofbiz/branches/release11.04/ modified , props changed
Directoryofbiz/branches/release11.04/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26