A call to the function "fgetcsv()" with an address entry
containing an exceedingly long "email" or "label" (or any
other fields) results in breakups of a single addressbook
entry (and thus resulting in multiple entries being
loaded). A simple solution might to be customize the
byte size to whatever is comfortable for an individual
application (as in our case which is an email service
provider).
Source: Stable Release v1.4.4
/**
* abook_local_file.php
*
* @version $Id: abook_local_file.php,v 1.22.2.5
2004/12/27 15:03:42 kink Exp $
* @package squirrelmail
* @subpackage addressbook
*/
... SNIPPED...
function list_addr() {
$res = array();
$this->open();
@rewind($this->filehandle);
while ($row = @fgetcsv($this->filehandle, 2048, '|'))
{
array_push($res, array('nickname' => $row[0],
'name' => $row[1] . ' ' . $row[2],
'firstname' => $row[1],
'lastname' => $row[2],
'email' => $row[3],
'label' => $row[4],
'backend' => $this->bnum,
'source' => &$this->sname));
}
return $res;
}
Tomas Kuliavas
None
None
Public
|
Date: 2006-10-07 12:01 Logged In: YES |
|
Date: 2006-06-27 10:11 Logged In: YES |
|
Date: 2005-05-25 17:52 Logged In: YES |
|
Date: 2005-05-24 19:10 Logged In: YES |
| Field | Old Value | Date | By |
|---|---|---|---|
| status_id | Open | 2006-10-07 12:01 | tokul |
| close_date | - | 2006-10-07 12:01 | tokul |
| data_type | 423679 | 2006-06-27 10:11 | tokul |
| resolution_id | None | 2006-06-27 10:11 | tokul |
| category_id | Address Book | 2006-06-27 10:11 | tokul |
| assigned_to | nobody | 2005-09-10 14:00 | tokul |
Copyright © 2010 Geeknet, Inc. All rights reserved. Terms of Use