From b5b1375f961d40c38b504849914caaba13ca5ac1 Mon Sep 17 00:00:00 2001 From: Andreas Hasenack Date: Fri, 25 Jan 2008 11:17:40 +0000 Subject: - remove non-printable characters from email report (#36848) --- cron-sh/security.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cron-sh') diff --git a/cron-sh/security.sh b/cron-sh/security.sh index 0440e14..e5a693a 100755 --- a/cron-sh/security.sh +++ b/cron-sh/security.sh @@ -228,7 +228,9 @@ Nothing has changed since the last run. EOF fi else - cat ${text} | /bin/mail -s "${subject}" "${MAIL_USER}" + # remove non-printable characters, + # see http://qa.mandriva.com/show_bug.cgi?id=36848 + cat ${text} | sed -e 's,[^[:print:]],,' | /bin/mail -s "${subject}" "${MAIL_USER}" fi fi fi -- cgit v1.2.1