mirror of
https://github.com/getgrav/grav.git
synced 2026-07-05 06:17:32 +02:00
trim to remove any extra dashes
This commit is contained in:
@@ -44,7 +44,7 @@ class ZipBackup
|
||||
|
||||
if (is_dir($destination)) {
|
||||
$date = date('YmdHis', time());
|
||||
$filename = $inflector->hyphenize($name) . '-' . $date . '.zip';
|
||||
$filename = $inflector->hyphenize(trim($name)) . '-' . $date . '.zip';
|
||||
$destination = rtrim($destination, DS) . DS . $filename;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user