ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hi...@apache.org
Subject svn commit: r1375858 - /ant/ivy/core/trunk/src/java/org/apache/ivy/util/FileUtil.java
Date Wed, 22 Aug 2012 00:13:05 GMT
Author: hibou
Date: Wed Aug 22 00:13:04 2012
New Revision: 1375858

URL: http://svn.apache.org/viewvc?rev=1375858&view=rev
Log:
Try to be a little more tolerent on the file name

Modified:
    ant/ivy/core/trunk/src/java/org/apache/ivy/util/FileUtil.java

Modified: ant/ivy/core/trunk/src/java/org/apache/ivy/util/FileUtil.java
URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/java/org/apache/ivy/util/FileUtil.java?rev=1375858&r1=1375857&r2=1375858&view=diff
==============================================================================
--- ant/ivy/core/trunk/src/java/org/apache/ivy/util/FileUtil.java (original)
+++ ant/ivy/core/trunk/src/java/org/apache/ivy/util/FileUtil.java Wed Aug 22 00:13:04 2012
@@ -55,7 +55,7 @@ public final class FileUtil {
 
     private static final byte[] EMPTY_BUFFER = new byte[0];
 
-    private static final Pattern ALLOWED_PATH_PATTERN = Pattern.compile("[\\w-./\\\\:~ ]+");
+    private static final Pattern ALLOWED_PATH_PATTERN = Pattern.compile("[\\w-./\\\\:~ %\\(\\)]+");
 
     public static void symlinkInMass(Map/* <File, File> */destToSrcMap, boolean overwrite)
throws IOException {
 



Mime
View raw message