Skip to content

Commit 533d4ba

Browse files
authored
+ containg files fix (#291)
1 parent c62afda commit 533d4ba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Cms/Model/FileSystemModel.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
use Mmi\App\App;
1414
use Mmi\App\KernelException;
15+
use Mmi\Filter\Url;
1516

1617
/**
1718
* Model
@@ -92,7 +93,7 @@ public function getDownloadPath(string $targetName): string
9293
$this->_name[2] .
9394
$this->_name[3] .
9495
self::PATH_SEPARATOR .
95-
md5($targetName . $this->_name . App::$di->get('cms.auth.salt')) .
96+
md5((new Url())->filter($targetName) . $this->_name . App::$di->get('cms.auth.salt')) .
9697
$this->_name .
9798
self::PATH_SEPARATOR .
9899
$targetName;

0 commit comments

Comments
 (0)