From 136f43791258253ead6ece9ab7049caab4463386 Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Mon, 26 Jan 2004 03:30:16 +0000 Subject: [PATCH] minor change to encode/decode --- phpgwapi/inc/class.vcard.inc.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/phpgwapi/inc/class.vcard.inc.php b/phpgwapi/inc/class.vcard.inc.php index e455f533af..82b0e9ccd4 100644 --- a/phpgwapi/inc/class.vcard.inc.php +++ b/phpgwapi/inc/class.vcard.inc.php @@ -165,7 +165,6 @@ { return (str_replace('=0D=0A',"\n",$string)); } - return $out; } function encode($string, $type='qp') @@ -174,8 +173,8 @@ switch($type) { case 'qp': - $out = ereg_replace("\r\n",'=0D=0A',$string); - $out = ereg_replace("\n",'=0D=0A',$out); + $out = str_replace("\r\n",'=0D=0A',$string); + $out = str_replace("\n",'=0D=0A',$out); break; case 'base64': $out = base64_encode($string);