fix non-ascii character break invoice download (#1592)

This commit is contained in:
Kevin Papst
2020-03-27 00:55:23 +01:00
committed by GitHub
parent 33f76f426c
commit 163fb1be4a
2 changed files with 12 additions and 4 deletions

View File

@@ -30,8 +30,8 @@ final class InvoiceFilename
}
if (!empty($company)) {
$company = new UnicodeString($company);
$filename .= '-' . $company->snake();
$uCompany = new UnicodeString($company);
$filename .= '-' . $uCompany->ascii()->snake();
}
$this->filename = $filename;