click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r781131 - /incubator/click/trunk/click/extras/src/org/apache/click/extras/filter/PerformanceFilter.java
Date Tue, 02 Jun 2009 19:17:39 GMT
Author: sabob
Date: Tue Jun  2 19:17:39 2009
New Revision: 781131

URL: http://svn.apache.org/viewvc?rev=781131&view=rev
Log:
added check if application version is set

Modified:
    incubator/click/trunk/click/extras/src/org/apache/click/extras/filter/PerformanceFilter.java

Modified: incubator/click/trunk/click/extras/src/org/apache/click/extras/filter/PerformanceFilter.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/extras/src/org/apache/click/extras/filter/PerformanceFilter.java?rev=781131&r1=781130&r2=781131&view=diff
==============================================================================
--- incubator/click/trunk/click/extras/src/org/apache/click/extras/filter/PerformanceFilter.java
(original)
+++ incubator/click/trunk/click/extras/src/org/apache/click/extras/filter/PerformanceFilter.java
Tue Jun  2 19:17:39 2009
@@ -636,8 +636,12 @@
             return true;
         }
         versionIndicator = getApplicationResourceVersionIndicator(path);
-        if (path.indexOf(versionIndicator) != -1) {
-            return true;
+
+        // Only apply application version if one is defined
+        if (StringUtils.isNotBlank(versionIndicator)) {
+            if (path.indexOf(versionIndicator) != -1) {
+                return true;
+            }
         }
         return false;
     }



Mime
View raw message