Permalink
Browse files

Replace bad UTF-8 characters

  • Loading branch information...
NEMS Linux
NEMS Linux committed Nov 3, 2018
1 parent 523175c commit 30bb8cc80e40ae7e40ee23b008490c04541ebc6e
Showing with 5 additions and 5 deletions.
  1. +2 −2 data/1.5/nagios/plugins/nems_sendmail_host
  2. +3 −3 data/1.5/nagios/plugins/nems_sendmail_service
@@ -34,7 +34,7 @@ $f_host_name =array_shift($argv); /*2*/
$f_host_alias =array_shift($argv); /*3*/
$f_host_state =array_shift($argv); /*4*/
$f_host_address =array_shift($argv); /*5*/
$f_host_output =array_shift($argv); /*6*/
$f_host_output =preg_replace('/[^(\x20-\x7F)\x0A\x0D]*/','',array_shift($argv)); /*6*/
$f_long_date =array_shift($argv); /*7*/
$f_to =array_shift($argv); /*8*/
$f_totalup =array_shift($argv); /*9*/
@@ -195,7 +195,7 @@ $HTMLmessage = '
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="description" content="NEMS Email Notification Alert">
<meta name="viewport" content="width=device-width">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
@@ -34,7 +34,7 @@ $f_host_name =array_shift($argv); /*2*/
$f_host_alias =array_shift($argv); /*3*/
$f_host_state =array_shift($argv); /*4*/
$f_host_address =array_shift($argv); /*5*/
$f_serv_output =array_shift($argv); /*6*/
$f_serv_output =preg_replace('/[^(\x20-\x7F)\x0A\x0D]*/','',array_shift($argv)); /*6*/
$f_long_datetime =array_shift($argv); /*7*/
$f_serv_desc =array_shift($argv); /*8*/
$f_serv_state =array_shift($argv); /*9*/
@@ -47,7 +47,7 @@ $f_totunknowns =array_shift($argv); /*15*/
$f_lastserviceok = array_shift($argv); /*16*/
$f_lastwarning = array_shift($argv); /*17*/
$f_attempts= array_shift($argv); /*18*/
$f_serv_long_output =array_shift($argv); /*19*/
$f_serv_long_output =preg_replace('/[^(\x20-\x7F)\x0A\x0D]*/','',array_shift($argv)); /*19*/
$f_ackauthor= array_shift($argv); /*20*/
$f_ackcomment= array_shift($argv); /*21*/
$f_serv_duration= array_shift($argv); /*22*/
@@ -218,7 +218,7 @@ $HTMLmessage = '
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="description" content="NEMS Email Notification Alert">
<meta name="viewport" content="width=device-width">
<meta http-equiv="X-UA-Compatible" content="IE=edge">

0 comments on commit 30bb8cc

Please sign in to comment.