diff --git a/lib/file-control-xhr.php b/lib/file-control-xhr.php index d5363d7..1df1161 100644 --- a/lib/file-control-xhr.php +++ b/lib/file-control-xhr.php @@ -48,7 +48,7 @@ if (!$error) { $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);