[prev in list] [next in list] [prev in thread] [next in thread] 

List:       horde-dev
Subject:    [dev] alternate newline characters in iTIP invites from Outlook
From:       Matt Selsky <selsky () columbia ! edu>
Date:       2005-09-30 6:47:51
Message-ID: 20050930064751.GA25113 () columbia ! edu
[Download RAW message or body]

I received an iTIP invite from an Outlook/Exchange user here and it 
contained "\N" (instead of "\n") as the newline character.  Has anyone 
else seen this?

Attached is a patch for IMP that properly renders the invitation.  Do we 
see any downsides to applying this?


-- 
Matt

["itip.patch" (text/plain)]

Index: itip.php
===================================================================
RCS file: /repository/imp/lib/MIME/Viewer/itip.php,v
retrieving revision 1.58
diff -u -r1.58 itip.php
--- itip.php	28 Sep 2005 18:04:38 -0000	1.58
+++ itip.php	30 Sep 2005 06:46:43 -0000
@@ -662,7 +662,7 @@
 
         $desc = $vevent->getAttribute('DESCRIPTION');
         if (!is_a($desc, 'PEAR_Error')) {
-            $html .= sprintf('<tr><td colspan="2" \
class="item"><strong>%s:</strong><br />%s</td></tr>', _("Description"), \
preg_replace('/\\n/', '<br />', $desc)); +            $html .= sprintf('<tr><td \
colspan="2" class="item"><strong>%s:</strong><br />%s</td></tr>', _("Description"), \
str_replace(array("\n", '\N'), '<br />', $desc));  }
 
         $loc = $vevent->getAttribute('LOCATION');



-- 
Horde developers mailing list - Join the hunt: http://horde.org/bounties/
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: dev-unsubscribe@lists.horde.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic