Moving to GitHub.
[platal.git] / include / ical.inc.php
index 0344182..6c4eea3 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2007 Polytechnique.org                              *
+ *  Copyright (C) 2003-2014 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -27,9 +27,7 @@ function display_ical($param) {
         $txt .= ';'.$param['param'];
     if (isset($param['value'])) {
         if ($txt) $txt .= ':';
-        $txt .= utf8_encode(
-                    preg_replace('/[,;:]/', '\\\\$0',
-                    preg_replace("/(\r\n|\r|\n)/", '\n', $param['value'])));
+        $txt .= preg_replace('/[,;:]/', '\\\\$0', preg_replace("/(\r\n|\r|\n)/", '\n', $param['value']));
     }
     $length = strlen($txt);
     $endline = "\n";
@@ -39,4 +37,5 @@ function display_ical($param) {
         $folded_txt .= $endline.' '.substr($txt, $i, $maxchars - 1);
     return $folded_txt;
 }
+// vim:set et sw=4 sts=4 sws=4 foldmethod=marker fenc=utf-8:
 ?>