svn commit: r1179100 - /ofbiz/trunk/applications/content/src/org/ofbiz/content/content/ContentUrlFilter.java

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

svn commit: r1179100 - /ofbiz/trunk/applications/content/src/org/ofbiz/content/content/ContentUrlFilter.java

hansbak-2
Author: hansbak
Date: Wed Oct  5 08:32:44 2011
New Revision: 1179100

URL: http://svn.apache.org/viewvc?rev=1179100&view=rev
Log:
another impovement to the content filter when a url has the '/control/main' shopped of

Modified:
    ofbiz/trunk/applications/content/src/org/ofbiz/content/content/ContentUrlFilter.java

Modified: ofbiz/trunk/applications/content/src/org/ofbiz/content/content/ContentUrlFilter.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/src/org/ofbiz/content/content/ContentUrlFilter.java?rev=1179100&r1=1179099&r2=1179100&view=diff
==============================================================================
--- ofbiz/trunk/applications/content/src/org/ofbiz/content/content/ContentUrlFilter.java (original)
+++ ofbiz/trunk/applications/content/src/org/ofbiz/content/content/ContentUrlFilter.java Wed Oct  5 08:32:44 2011
@@ -125,7 +125,7 @@ public class ContentUrlFilter extends Co
                 try {
                     url = StringUtil.defaultWebEncoder.decodeFromURL(url);
                     String mountPoint = request.getContextPath();
-                    if (mountPoint != "/") {
+                    if (!(mountPoint.equals("/")) && !(mountPoint.equals(""))) {
                         url = mountPoint + url;
                     }
                 } catch (EncodingException e) {