projects
/
infodrom.org
/
infocon.infodrom.org
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7ef7bce
)
Replace ereg_replace with str_replace
author
Joey Schulze
<joey@infodrom.org>
Mon, 26 Aug 2013 19:12:40 +0000
(19:12 +0000)
committer
Joey Schulze
<joey@infodrom.org>
Mon, 26 Aug 2013 19:12:40 +0000
(19:12 +0000)
src/logbook/index.wml
patch
|
blob
|
history
diff --git
a/src/logbook/index.wml
b/src/logbook/index.wml
index
8ee88ff
..
9a905bb
100644
(file)
--- 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);
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);
$date = explode (" ", $row['created']);
$time = explode (":", $date[1]);
$tz = substr($time[2], 2);