From 60646ef43227362c9b79ca44526fd1ff119aeda4 Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Fri, 19 Dec 2003 10:05:05 +0000 Subject: [PATCH] ereg/intval update --- addressbook/inc/export/phpgw_LDIF | 4 ++-- addressbook/inc/import/Import_Multiple_VCard | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/addressbook/inc/export/phpgw_LDIF b/addressbook/inc/export/phpgw_LDIF index 5388845114..ee0b7f2e70 100644 --- a/addressbook/inc/export/phpgw_LDIF +++ b/addressbook/inc/export/phpgw_LDIF @@ -137,7 +137,7 @@ $context = $GLOBALS['phpgw_info']['server']['ldap_contact_context']; } $time = gettimeofday(); - $cn = ereg_replace(',','',$buffer[$this->id]['cn']); + $cn = str_replace(',','',$buffer[$this->id]['cn']); $buffer[$this->id]['dn'] = 'uid='.time().$time['usec'].':'.$cn.','.$context; $buffer[$this->id]['uid'] = time().$time['usec']; if ($buffer[$this->id]['cn']) @@ -160,7 +160,7 @@ { if (($value != 'dn') && !empty($buffer[$i][$value])) { - $tmp = ereg_replace(',','',$buffer[$i][$value]); + $tmp = str_replace(',','',$buffer[$i][$value]); $entries .= $value . ': ' . $tmp . "\n"; } } diff --git a/addressbook/inc/import/Import_Multiple_VCard b/addressbook/inc/import/Import_Multiple_VCard index c3949c27c1..06a472d3e4 100644 --- a/addressbook/inc/import/Import_Multiple_VCard +++ b/addressbook/inc/import/Import_Multiple_VCard @@ -51,7 +51,7 @@ function import_new_attrib($buffer,$name,$value) { $value = trim($value); - $value = ereg_replace('=0D=0A',"\n",$value); + $value = str_replace('=0D=0A',"\n",$value); /* echo '
'.$this->id.': '.$name.' => '.$value; */ $this->currentrecord += array($name => $value);