From 20382683752db890f2beb3b9322153b894e9b877 Mon Sep 17 00:00:00 2001 From: Daniel THIRION Date: Thu, 29 Feb 2024 10:02:08 +0100 Subject: [PATCH] Fix MSLD parser to ignore case of keys --- .../it/sauronsoftware/ftp4j/listparsers/MLSDListParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/it/sauronsoftware/ftp4j/listparsers/MLSDListParser.java b/src/main/java/it/sauronsoftware/ftp4j/listparsers/MLSDListParser.java index d44093a..0875fd7 100644 --- a/src/main/java/it/sauronsoftware/ftp4j/listparsers/MLSDListParser.java +++ b/src/main/java/it/sauronsoftware/ftp4j/listparsers/MLSDListParser.java @@ -112,7 +112,7 @@ private FTPFile parseLine(String line) throws FTPListParseException { if (sep == -1) { throw new FTPListParseException(); } - String key = aux.substring(0, sep).trim(); + String key = aux.substring(0, sep).trim().toLowerCase(); String value = aux.substring(sep + 1, aux.length()).trim(); if (key.length() == 0 || value.length() == 0) { throw new FTPListParseException();