[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:39 EST 2009


details:   http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/c6b2b2c6335a
changeset: 6667:c6b2b2c6335a
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 706481908635 -r c6b2b2c6335a public_html/docs/history
--- a/public_html/docs/history	Tue Jan 06 16:10:40 2009 +0100
+++ b/public_html/docs/history	Sat Jan 10 10:15:58 2009 +0100
@@ -3,6 +3,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 706481908635 -r c6b2b2c6335a system/lib-story.php
--- a/system/lib-story.php	Tue Jan 06 16:10:40 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