From: Joey Schulze Date: Mon, 26 Aug 2013 19:12:40 +0000 (+0000) Subject: Replace ereg_replace with str_replace X-Git-Url: https://git.infodrom.org/?p=infodrom.org%2Finfocon.infodrom.org;a=commitdiff_plain;h=9d5d3ed3c5044a3afefaf2b7ce519494e72a308a Replace ereg_replace with str_replace --- diff --git a/src/logbook/index.wml b/src/logbook/index.wml index 8ee88ff..9a905bb 100644 --- a/src/logbook/index.wml +++ b/src/logbook/index.wml @@ -65,12 +65,9 @@ function teaserlink($teaser) for ($nr=0; $nr < pg_NumRows ($sth); $nr++) { $row = pg_fetch_array ($sth, $nr); - $body = ereg_replace ("<", "<", - ereg_replace (">", ">", - ereg_replace ("&", "&", - str_replace ("\\\n", "", - str_replace ("\r", "", - $row['body']))))); + $body = str_replace(array('<','>','&',"\\\n","\r"), + array('<', '>', '&', '', ''), + $row['body']); $date = explode (" ", $row['created']); $time = explode (":", $date[1]); $tz = substr($time[2], 2);