From: x2002marichez Date: Fri, 24 Sep 2004 21:51:42 +0000 (+0000) Subject: Bugfix : pas de OEL dans un champ de vcard... X-Git-Tag: xorg/old~1495 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=e086b421778d945d55991b19909d6180ce04f8ff;p=platal.git Bugfix : pas de OEL dans un champ de vcard... (... sauf si la nouvelle ligne commence par un espace) see RFC 2425 $5.8.2 http://www.faqs.org/rfcs/rfc2425.html --- diff --git a/htdocs/vcard.php b/htdocs/vcard.php index 18127e7..eea2ee9 100644 --- a/htdocs/vcard.php +++ b/htdocs/vcard.php @@ -18,7 +18,7 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *************************************************************************** - $Id: vcard.php,v 1.10 2004-09-05 12:54:18 x2000habouzit Exp $ + $Id: vcard.php,v 1.11 2004-09-24 21:51:42 x2002marichez Exp $ ***************************************************************************/ require("auto.prepend.inc.php"); @@ -28,7 +28,7 @@ function quoted_printable_encode($input, $line_max = 76) { $hex = array('0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F'); $lines = preg_split("/(?:\r\n|\r|\n)/", $input); $eol = "\r\n"; - $linebreak = "\n"; + $linebreak = "=0A"; $escape = "="; $output = "";