m3 Security Fixes
This commit is contained in:
@@ -16,7 +16,7 @@ class ExportSource extends Command
|
||||
{
|
||||
$project = basename(base_path());
|
||||
$timestamp = now()->format('Ymd-His');
|
||||
$downloads = rtrim((string) getenv('HOME'), '/').'/Downloads';
|
||||
$downloads = rtrim((string) getenv('HOME'), '/') . '/Downloads';
|
||||
$archive = "{$downloads}/{$project}-source-{$timestamp}.zip";
|
||||
|
||||
$this->info("Exporting {$project}...");
|
||||
@@ -40,7 +40,7 @@ class ExportSource extends Command
|
||||
return self::FAILURE;
|
||||
}
|
||||
|
||||
$zip = new ZipArchive();
|
||||
$zip = new ZipArchive;
|
||||
|
||||
if ($zip->open($archive) !== true) {
|
||||
$this->error('Could not open ZIP.');
|
||||
|
||||
Reference in New Issue
Block a user