[geeklog-cvs] geeklog: The ereg functions are deprecated - use str_replace

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Sat Jan 30 14:03:52 EST 2010


changeset 7687:0e5eab10e7e0
url:  http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/0e5eab10e7e0
user: Dirk Haun <dirk at haun-online.de>
date: Sat Jan 30 19:59:04 2010 +0100
description:
The ereg functions are deprecated - use str_replace

diffstat:

 public_html/lib-common.php |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (16 lines):

diff -r 9131a6c0e831 -r 0e5eab10e7e0 public_html/lib-common.php
--- a/public_html/lib-common.php	Sat Jan 30 19:46:58 2010 +0100
+++ b/public_html/lib-common.php	Sat Jan 30 19:59:04 2010 +0100
@@ -6864,10 +6864,10 @@
 
     if ($_CONF['meta_tags'] > 0) {
         if ($meta_description != '') {
-            $headercode .= LB . '<meta name="description" content="' . ereg_replace("\n|\r|\r\n|\n\r", "", strip_tags($meta_description)) . '"' . XHTML . '>';
+            $headercode .= LB . '<meta name="description" content="' . str_replace(array("\015", "\012"), '', strip_tags($meta_description)) . '"' . XHTML . '>';
         }
         if ($meta_keywords != '') {
-            $headercode .= LB . '<meta name="keywords" content="' . ereg_replace("\n|\r|\r\n|\n\r", "", strip_tags($meta_keywords)) . '"' . XHTML . '>';
+            $headercode .= LB . '<meta name="keywords" content="' . str_replace(array("\015", "\012"), '', strip_tags($meta_keywords)) . '"' . XHTML . '>';
         }
     }    
 



More information about the geeklog-cvs mailing list