Change rtrim to preg_replace in file control

This commit is contained in:
Matt Pass
2020-01-11 13:02:07 +00:00
committed by GitHub
parent 6cc86847d2
commit 6500205624

View File

@@ -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);