Revision: 1721
          http://mrbs.svn.sourceforge.net/mrbs/?rev=1721&view=rev
Author:   cimorrison
Date:     2010-12-20 23:24:06 +0000 (Mon, 20 Dec 2010)

Log Message:
-----------
Fixed escaping of line breaks in text to comply with RFC 5545

Modified Paths:
--------------
    mrbs/branches/ics_attachments/web/functions_ical.inc

Modified: mrbs/branches/ics_attachments/web/functions_ical.inc
===================================================================
--- mrbs/branches/ics_attachments/web/functions_ical.inc        2010-12-20 
23:17:33 UTC (rev 1720)
+++ mrbs/branches/ics_attachments/web/functions_ical.inc        2010-12-20 
23:24:06 UTC (rev 1721)
@@ -74,6 +74,8 @@
   $str = str_replace(";", "\;", $str);
   // Escape ','
   $str = str_replace(",", "\,", $str);
+  // EOL can only be \n
+  $str = str_replace("\r\n", "\n", $str);
   // Escape '\n'
   $str = str_replace("\n", "\\n", $str);
   return $str;


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to