We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c62afda commit 533d4baCopy full SHA for 533d4ba
src/Cms/Model/FileSystemModel.php
@@ -12,6 +12,7 @@
12
13
use Mmi\App\App;
14
use Mmi\App\KernelException;
15
+use Mmi\Filter\Url;
16
17
/**
18
* Model
@@ -92,7 +93,7 @@ public function getDownloadPath(string $targetName): string
92
93
$this->_name[2] .
94
$this->_name[3] .
95
self::PATH_SEPARATOR .
- md5($targetName . $this->_name . App::$di->get('cms.auth.salt')) .
96
+ md5((new Url())->filter($targetName) . $this->_name . App::$di->get('cms.auth.salt')) .
97
$this->_name .
98
99
$targetName;
0 commit comments