mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 03:55:18 +00:00
extra encoding on mail titles
This commit is contained in:
parent
419b4ecfde
commit
5786fd2221
2 changed files with 2 additions and 2 deletions
|
@ -3492,7 +3492,7 @@ function mail_store($arr) {
|
||||||
$arr['to_xchan'] = ((x($arr,'to_xchan')) ? notags(trim($arr['to_xchan'])) : '');
|
$arr['to_xchan'] = ((x($arr,'to_xchan')) ? notags(trim($arr['to_xchan'])) : '');
|
||||||
$arr['created'] = ((x($arr,'created') !== false) ? datetime_convert('UTC','UTC',$arr['created']) : datetime_convert());
|
$arr['created'] = ((x($arr,'created') !== false) ? datetime_convert('UTC','UTC',$arr['created']) : datetime_convert());
|
||||||
$arr['expires'] = ((x($arr,'expires') !== false) ? datetime_convert('UTC','UTC',$arr['expires']) : NULL_DATE);
|
$arr['expires'] = ((x($arr,'expires') !== false) ? datetime_convert('UTC','UTC',$arr['expires']) : NULL_DATE);
|
||||||
$arr['title'] = ((x($arr,'title')) ? notags(trim($arr['title'])) : '');
|
$arr['title'] = ((x($arr,'title')) ? trim($arr['title']) : '');
|
||||||
$arr['parent_mid'] = ((x($arr,'parent_mid')) ? notags(trim($arr['parent_mid'])) : '');
|
$arr['parent_mid'] = ((x($arr,'parent_mid')) ? notags(trim($arr['parent_mid'])) : '');
|
||||||
$arr['body'] = ((x($arr,'body')) ? trim($arr['body']) : '');
|
$arr['body'] = ((x($arr,'body')) ? trim($arr['body']) : '');
|
||||||
|
|
||||||
|
|
|
@ -1305,7 +1305,7 @@ function theme_attachments(&$item) {
|
||||||
$title = htmlspecialchars($r['title'], ENT_COMPAT,'UTF-8');
|
$title = htmlspecialchars($r['title'], ENT_COMPAT,'UTF-8');
|
||||||
if(! $title)
|
if(! $title)
|
||||||
$title = t('unknown.???');
|
$title = t('unknown.???');
|
||||||
$title .= ' ' . $r['length'] . ' ' . t('bytes');
|
$title .= ' ' . (($r['length']) ? $r['length'] . ' ' . t('bytes') : '');
|
||||||
|
|
||||||
require_once('include/identity.php');
|
require_once('include/identity.php');
|
||||||
if(is_foreigner($item['author_xchan']))
|
if(is_foreigner($item['author_xchan']))
|
||||||
|
|
Loading…
Reference in a new issue