From: hickert Date: Mon, 31 Jan 2011 07:44:36 +0000 (+0000) Subject: Updated vacation message handling, allow to use " in the message. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ca38182fd5ad788a3221b0aefd7278760fdaceaa;p=gosa.git Updated vacation message handling, allow to use " in the message. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20609 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/mail/personal/mail/class_mail-methods-cyrus.inc b/gosa-plugins/mail/personal/mail/class_mail-methods-cyrus.inc index a59eb326b..db67e08c0 100644 --- a/gosa-plugins/mail/personal/mail/class_mail-methods-cyrus.inc +++ b/gosa-plugins/mail/personal/mail/class_mail-methods-cyrus.inc @@ -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\";"); }