mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-11 00:14:50 +03:00
Bugfix: Undefined variable $sFilename
This commit is contained in:
parent
4b63adb0d5
commit
f4e81a183e
1 changed files with 2 additions and 2 deletions
|
|
@ -243,12 +243,12 @@ class Http
|
|||
{
|
||||
$parms = array($type);
|
||||
if (isset($params['filename'])) {
|
||||
if (\preg_match('#^[\x01-\x7F]*$#D', $sFilename)) {
|
||||
if (\preg_match('#^[\x01-\x7F]*$#D', $params['filename'])) {
|
||||
$parms[] = "filename=\"{$params['filename']}\"";
|
||||
} else {
|
||||
// RFC 5987
|
||||
// $parms[] = Utils::EncodeHeaderUtf8AttributeValue('filename', $sFileNameOut);
|
||||
$parms[] = "filename*=utf-8''" . \rawurlencode($sFilename);
|
||||
$parms[] = "filename*=utf-8''" . \rawurlencode($params['filename']);
|
||||
}
|
||||
}
|
||||
if (isset($params['creation-date'])) $parms[] = 'creation-date=' . \date(DATE_RFC822, $params['creation-date']);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue