From 65002056247c3efa0f2ad8f2c21d930e6f643971 Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Sat, 11 Jan 2020 13:02:07 +0000 Subject: [PATCH] Change rtrim to preg_replace in file control --- lib/file-control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/file-control.php b/lib/file-control.php index 9942815..3b7d2ff 100644 --- a/lib/file-control.php +++ b/lib/file-control.php @@ -27,7 +27,7 @@ $fileOrig = $file; $file = rtrim(rtrim($file,'+'),' '); // Also remove [NEW] from $file, we can consider $_GET['action'] or $fileOrig to pick that up -$file = rtrim($file,'[NEW]'); +$file = preg_replace('/\[NEW\]$/', '', $file); // Make each path in $file a full path (; seperated list) $allFiles = explode(";",$file);