Code

Backport from trunk, allows to use " in vacation messages.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 31 Jan 2011 07:45:45 +0000 (07:45 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 31 Jan 2011 07:45:45 +0000 (07:45 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.7@20610 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/mail/personal/mail/class_mail-methods-cyrus.inc

index a59eb326b1d8980c3c23fb50d5320284c689ee98..db67e08c080ee699fb033d52dde28b2623216ebd 100644 (file)
@@ -581,7 +581,7 @@ class mailMethodCyrus extends mailMethod{
       foreach ($gosaMailAlternateAddress as $val){
         $addrlist .= ", \"$val\"";
       }
-      $vacmsg= $gosaVacationMessage;
+      $vacmsg= addslashes(addslashes($gosaVacationMessage));
       $text= preg_replace('/"/', '\\"', implode ("", file(CONFIG_DIR."/sieve-vacation.txt")));
       eval ("\$script.=\"$text\";");
     }