Skip to content

Commit d5d17c4

Browse files
authored
Merge pull request #6 from AlexVanderbist/filename-sanitize
Sanitize snapshot (file)name
2 parents 4767466 + 3a450fc commit d5d17c4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/SnapshotFactory.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ public function create(string $snapshotName, string $diskName, string $connectio
3030
$disk = $this->getDisk($diskName);
3131

3232
$fileName = $snapshotName.'.sql';
33+
$fileName = pathinfo($fileName, PATHINFO_BASENAME);
3334

3435
event(new CreatingSnapshot(
3536
$fileName,

0 commit comments

Comments
 (0)