From 6a9f9f248c738b937e266a0a281a4a44e2b72e37 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 31 Jan 2011 07:45:45 +0000 Subject: [PATCH] Backport from trunk, allows to use " in vacation messages. 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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\";"); } -- 2.30.2