logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rpo...@apache.org
Subject svn commit: r1555354 - /logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/helpers/FileUtils.java
Date Sat, 04 Jan 2014 14:51:19 GMT
Author: rpopma
Date: Sat Jan  4 14:51:18 2014
New Revision: 1555354

URL: http://svn.apache.org/r1555354
Log:
LOG4J2-466 fix for config files with a '+' character in their path

Modified:
    logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/helpers/FileUtils.java

Modified: logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/helpers/FileUtils.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/helpers/FileUtils.java?rev=1555354&r1=1555353&r2=1555354&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/helpers/FileUtils.java
(original)
+++ logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/helpers/FileUtils.java
Sat Jan  4 14:51:18 2014
@@ -64,8 +64,8 @@ public final class FileUtils {
         }
         try {
             String fileName = uri.toURL().getFile();
-            if (new File(fileName).exists()) {
-                return new File(fileName);
+            if (new File(fileName).exists()) { // LOG4J2-466
+                return new File(fileName); // allow files with '+' char in name
             }
             return new File(URLDecoder.decode(fileName, "UTF8"));
         } catch (final MalformedURLException ex) {



Mime
View raw message