Alexander Nicolaysen =?UTF-8?Q?S=C3=B8rnes=20?=: mail: Replace deprecated ereg_replace with str_replace

Alexander Nicolaysen Sørnes asornes at winehq.org
Sun Jan 12 11:07:19 CST 2014


Module: appdb
Branch: master
Commit: 9c5b79818e753049001bd0b4553c4c7781e67682
URL:    http://source.winehq.org/git/appdb.git/?a=commit;h=9c5b79818e753049001bd0b4553c4c7781e67682

Author: Alexander Nicolaysen Sørnes <alexsornes at gmail.com>
Date:   Sun Jan 12 17:59:30 2014 +0100

mail: Replace deprecated ereg_replace with str_replace

---

 include/mail.php |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/mail.php b/include/mail.php
index 1c8fb65..90223aa 100644
--- a/include/mail.php
+++ b/include/mail.php
@@ -16,7 +16,7 @@ function mail_appdb($sEmailList,$sSubject,$sMsg)
     $sHeaders .= "Bcc: $sEmailListComma\r\n";
     $sHeaders .= "X-Priority: 3\r\n";
     $sHeaders .= "X-Mailer: ".APPDB_OWNER." mailer\r\n";
-    $sMsg  = trim(ereg_replace("\r\n","\n",$sMsg));
+    $sMsg  = trim(str_replace("\r\n","\n",$sMsg));
     $sMsg  = $sSubject."\n-------------------------------------------------------\n".$sMsg."\n\n";
     $sMsg .= "Best regards.\n";
     $sMsg .= "The AppDB team\n";




More information about the wine-cvs mailing list