fix for downloadable zip folders
This commit is contained in:
1 parent
0df2b30a00
commit
5d00709b1f
1 file changed
+1
-1
@@ -147,7 +147,7 @@ public class FileArgument
|
||||
for (int i =0; i < pathElements.length; i++ )
|
||||
{
|
||||
String token = pathElements[i];
|
||||
boolean isZip = token.endsWith(".zip");
|
||||
boolean isZip = token.endsWith(".zip") && (isFolder || (i < pathElements.length-1));
|
||||
if (zipPath != null && isZip) throw new InternalExpressionException(token+" indicates zip access in an already zipped location "+zipPath);
|
||||
if (isZip) token = token.substring(0, token.length()-4);
|
||||
token = (type==Type.ANY && i == pathElements.length-1)? // sloppy really, but should work
|
||||
|
||||
Reference in new issue
Block a user