litesoft
Diff Revisions
364
vs
367
for /trunk/Java/VersionedStaticContentFilter/src/org/litesoft/servlet/versionedstaticcontentfilter/VersionedStaticContentFilter.java
|
@@ -106,9 +106,11 @@ |
106 |
106 |
|
} |
107 |
107 |
|
// System.out.println( "VersionedStaticContentFilter.doFilter: " + zURI ); |
108 |
108 |
|
int at = zURI.indexOf( "/common/" ); |
109 |
|
- |
if ( (at != -1) && zURI.startsWith( "/v" ) ) |
|
109 |
+ |
if ( at != -1 ) |
110 |
110 |
|
{ |
111 |
|
- |
if ( isDigits( zURI.substring( 2, at ) ) ) |
|
111 |
+ |
String zBeforeSlashCommon = zURI.substring( 0, at ); |
|
112 |
+ |
int zSlashVat = zBeforeSlashCommon.lastIndexOf( "/v" ); |
|
113 |
+ |
if ( (zSlashVat != -1) && isDigits( zBeforeSlashCommon.substring( zSlashVat + 2 ) ) ) |
112 |
114 |
|
{ |
113 |
115 |
|
request.getRequestDispatcher( zURI.substring( at ) ).forward( request, response ); |
114 |
116 |
|
return; |