[dev] Fwd: horde/lib/Data.php
Chuck Hagenbuch
chuck at horde.org
Tue Aug 19 05:35:48 PDT 2003
----- Forwarded message from lembke at lcc.ch -----
Date: Tue, 19 Aug 2003 14:39:36 +0200
From: Dietmar Lembke <lembke at lcc.ch>
Reply-To: Dietmar Lembke <lembke at lcc.ch>
Subject: horde/lib/Data.php
To: chuck at horde.org
Hi Chuck,
sorry for writing directly to you. Could not get into bug track!
I probably found a bug im horde/lib/Data.php which caused some problem
importing tsv data from a windows client. The original result with the
un patched version was that you got a double line count when importing
MS-DOS text files. Since the lines where splited into an array on \n &
\r but should actually only split on \r\n. By reversing regex as below
the problem should be fixed.
Hope you can use it.
Best regards,
didi
--------------diff -rcs Data.php Data.php-orig------------------------
*** Data.php Tue Aug 19 14:19:41 2003
--- Data.php-orig Tue Aug 19 14:12:09 2003
***************
*** 372,378 ****
return false;
}
! $contents = preg_split( "/(\r\n|\n|\r)/", rtrim(fread($fp,
filesize($filename))));
fclose($fp);
--- 372,378 ----
return false;
}
! $contents = preg_split( "/(\n|\r|\r\n)/", rtrim(fread($fp,
filesize($filename))));
fclose($fp);
-------------end -diff -rcs Data.php
Data.php-orig------------------------
Lembke Computer Consulting GmbH
Dietmar Lembke
Rämslistrasse 94
CH-6315 Oberägeri
Tel: +41417508952
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: PGP 8.0 (Build 288) Beta
mQGiBD2p1+0RBAD7nsCLBGzGJ0hHv6JbWdTMC/n8kW4A2+W3R0QDryp+JAzmQHoE
T3umg6GC/TvSmT7Qs3Vc9SIzUGFsj5pZshwqTJxZ8Ch6VTMtUP+oBmREVmQeezNc
u+0KMtGeOB34bwVog7TAL7NaMomFM1VNghVfG6VcdBCG95TJ9NAn3QFzowCg/9xl
4g7bWP7zyjVFdf4TDnUaCAUEAKfOIcKI48pBGlAIyg6J+bvTiPuoxArkmxrMl+yt
2pcR/mqNmdZrPzvXakDOKsVnJ45qblmDe918/zalTYj5uZ2FajyFgT/t5nnICPui
n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MQouOL0RjVWIeK9ri07737ZosFI8sVXwFnzTcEB0
XWaIPGbdx5K+u8sRFEkUF8+JAEwEGBECAAwFAj2p1+0FGwwAAAAACgkQ5ltwZdIn
6LQYkwCg3/gN4hj1LDOeDqIMfKohmq3V6oIAn1C7mDb6URXhO+Tls80VWvqMjalt
=C0Cp
-----END PGP PUBLIC KEY BLOCK-----
----- End forwarded message -----
-chuck
--
Charles Hagenbuch, <chuck at horde.org>
They're just looking at a wall of meat.
More information about the dev
mailing list