From a448479a620b10867f5558e89b19074d0fea5b1c Mon Sep 17 00:00:00 2001 From: David DAUGREILH Date: Thu, 29 Nov 2018 17:23:41 +0100 Subject: [PATCH] Allow uppercase in file path --- README.md | 1 + lib/functions.php | 2 +- readme.txt | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 021d2b8..7629b53 100644 --- a/README.md +++ b/README.md @@ -98,6 +98,7 @@ Screenshots on ### 1.5.3 * Test compatibily with Wordpress 5.0.0 * Improvement translations +* Fix unix file path from log directory ### 1.5.2 * Fix file path on duplicate diff --git a/lib/functions.php b/lib/functions.php index 90426b3..e9f89cb 100644 --- a/lib/functions.php +++ b/lib/functions.php @@ -27,7 +27,7 @@ public static function valid_windows_dir_path($path) { * @return boolean true | false */ public static function valid_unix_dir_path($path) { - $reg = "/^(\/([a-z0-9+\$_.-])+)*\/?$/"; + $reg = "/^(\/([a-zA-Z0-9+\$_.-])+)*\/?$/"; $bool = preg_match($reg,$path); return ($bool == 1); } diff --git a/readme.txt b/readme.txt index 518ca85..05eb2f5 100644 --- a/readme.txt +++ b/readme.txt @@ -96,6 +96,7 @@ As of now, following languages are supported : English (en_US), French (fr_FR), = 1.5.3 = * Test compatibily with Wordpress 5.0.0 * Improvement translations +* Fix unix file path from log directory = 1.5.2 = * Fix file path on duplicate