diff options
author | Andreas Hasenack <andreas@mandriva.com> | 2008-01-25 11:17:40 +0000 |
---|---|---|
committer | Andreas Hasenack <andreas@mandriva.com> | 2008-01-25 11:17:40 +0000 |
commit | b5b1375f961d40c38b504849914caaba13ca5ac1 (patch) | |
tree | 4980bf2f759c0da689cbf8c274dd5931ee46e991 /cron-sh/security.sh | |
parent | dd0f50f4cbcf5a2f32216de8fc5153694d129ad2 (diff) | |
download | msec-b5b1375f961d40c38b504849914caaba13ca5ac1.tar msec-b5b1375f961d40c38b504849914caaba13ca5ac1.tar.gz msec-b5b1375f961d40c38b504849914caaba13ca5ac1.tar.bz2 msec-b5b1375f961d40c38b504849914caaba13ca5ac1.tar.xz msec-b5b1375f961d40c38b504849914caaba13ca5ac1.zip |
- remove non-printable characters from email reportv0.50.6
(#36848)
Diffstat (limited to 'cron-sh/security.sh')
-rwxr-xr-x | cron-sh/security.sh | 4 |
1 files changed, 3 insertions, 1 deletions
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 |