fix: use underscores in backup archive filenames

Example: mokoconsulting.tech_20260602_143000_profile1.zip

Authored-by: Moko Consulting
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Jonathan Miller
2026-06-02 15:01:45 -05:00
parent 029f88fe4b
commit 044722c7cf
@@ -58,9 +58,9 @@ class BackupEngine
// Create backup record
$now = date('Y-m-d H:i:s');
$tag = date('Ymd-His');
$tag = date('Ymd_His');
$hostname = preg_replace('/[^a-zA-Z0-9._-]/', '', $_SERVER['HTTP_HOST'] ?? $_SERVER['SERVER_NAME'] ?? php_uname('n'));
$archiveName = $hostname . '-' . $tag . '-profile' . $profileId . '.zip';
$archiveName = $hostname . '_' . $tag . '_profile' . $profileId . '.zip';
if (empty($description)) {
$description = $profile->title . ' — ' . $now;