From 060ab504d26b1044e946e7674201fa54f8ffb184 Mon Sep 17 00:00:00 2001 From: Guy Brand Date: Sun, 3 Oct 2010 15:51:21 +0200 Subject: Truncate wiki name in sent mail (FS#2021) --- inc/common.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/inc/common.php b/inc/common.php index 390b038a5..6af7f49de 100644 --- a/inc/common.php +++ b/inc/common.php @@ -1128,7 +1128,11 @@ function notify($id,$who,$rev='',$summary='',$minor=false,$replace=array()){ $diff = rawWiki($id); } $text = str_replace('@DIFF@',$diff,$text); - $subject = '['.$conf['title'].'] '.$subject; + if(utf8_strlen($conf['title']) < 20) { + $subject = '['.$conf['title'].'] '.$subject; + }else{ + $subject = '['.utf8_substr($conf['title'], 0, 20).'...] '.$subject; + } $from = $conf['mailfrom']; $from = str_replace('@USER@',$_SERVER['REMOTE_USER'],$from); -- cgit v1.2.3