You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by bo...@apache.org on 2018/05/30 08:09:00 UTC

[2/6] commons-io git commit: isRFC3986HostName applies to IPv4 addresses so we can safe the test

isRFC3986HostName applies to IPv4 addresses so we can safe the test


Project: http://git-wip-us.apache.org/repos/asf/commons-io/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-io/commit/0aeeb467
Tree: http://git-wip-us.apache.org/repos/asf/commons-io/tree/0aeeb467
Diff: http://git-wip-us.apache.org/repos/asf/commons-io/diff/0aeeb467

Branch: refs/heads/master
Commit: 0aeeb46737c5e4a5d8c21c26e6793956b0296cda
Parents: e996235
Author: Stefan Bodewig <st...@innoq.com>
Authored: Thu May 17 21:03:26 2018 +0200
Committer: Stefan Bodewig <st...@innoq.com>
Committed: Wed May 30 10:06:07 2018 +0200

----------------------------------------------------------------------
 src/main/java/org/apache/commons/io/FilenameUtils.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-io/blob/0aeeb467/src/main/java/org/apache/commons/io/FilenameUtils.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/io/FilenameUtils.java b/src/main/java/org/apache/commons/io/FilenameUtils.java
index 16ee782..be52ea0 100644
--- a/src/main/java/org/apache/commons/io/FilenameUtils.java
+++ b/src/main/java/org/apache/commons/io/FilenameUtils.java
@@ -1509,7 +1509,7 @@ public class FilenameUtils {
      * @return true if the given name is a valid host name
      */
     private static boolean isValidHostName(String name) {
-        return isIPv4Address(name) || isIPv6Address(name) || isRFC3986HostName(name);
+        return isIPv6Address(name) || isRFC3986HostName(name);
     }
 
     private static final Pattern IPV4_PATTERN =