[geeklog-cvs] geeklog: Fixed wrong use of str_replace in STORY_extractLinks (b...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Mon Jan 12 04:22:40 EST 2009
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/bcb391cc856b
changeset: 6668:bcb391cc856b
user: Dirk Haun <dirk at haun-online.de>
date: Sat Jan 10 10:15:58 2009 +0100
description:
Fixed wrong use of str_replace in STORY_extractLinks (bug #0000794)
diffstat:
2 files changed, 2 insertions(+), 1 deletion(-)
public_html/docs/history | 1 +
system/lib-story.php | 2 +-
diffs (23 lines):
diff -r 6150014cda16 -r bcb391cc856b public_html/docs/history
--- a/public_html/docs/history Tue Jan 06 17:32:41 2009 +0100
+++ b/public_html/docs/history Sat Jan 10 10:15:58 2009 +0100
@@ -63,6 +63,7 @@
Jan ??, 2009 (1.5.2)
------------
+- Fixed wrong use of str_replace in STORY_extractLinks (bug #0000794) [Dirk]
- Added "Send Pings" to the Story Options block (if enabled and allowed for the
current user) [Dirk]
- Don't let the user enable plugins when there's no functions.inc for the
diff -r 6150014cda16 -r bcb391cc856b system/lib-story.php
--- a/system/lib-story.php Tue Jan 06 17:32:41 2009 +0100
+++ b/system/lib-story.php Sat Jan 10 10:15:58 2009 +0100
@@ -573,7 +573,7 @@
}
$rel[] = '<a href="' . $matches[1][$i] . '">'
- . str_replace ("/(\015\012)|(\015)|(\012)/", '', $matches[2][$i])
+ . str_replace(array("\015", "\012"), '', $matches[2][$i])
. '</a>';
}
More information about the geeklog-cvs
mailing list