fix: replace non-ascii chars

in pre-uploaded filenames

fix #183
pull/186/head
sualko 2021-12-02 15:39:48 +01:00
parent c9a92b8695
commit 818802ad73
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ class Presentation {
public function __construct(string $url, string $filename) {
$this->url = $url;
$this->filename = $filename;
$this->filename = preg_replace('/[^\x20-\x7E]+/','#', $filename);
}
public function getUrl(): string {