[dev] alternate newline characters in iTIP invites from Outlook
Matt Selsky
selsky at columbia.edu
Thu Sep 29 23:47:51 PDT 2005
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
-------------- next part --------------
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');
More information about the dev
mailing list