From: hickert Date: Thu, 29 Mar 2007 08:26:08 +0000 (+0000) Subject: Updated vacation expert mode. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2b8f388465e9b63167c9d5ce4310c6905ccb3a48;p=gosa.git Updated vacation expert mode. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5921 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/sieve/class_sieveElement_Vacation.inc b/include/sieve/class_sieveElement_Vacation.inc index 477a7fe0c..3cb1b3929 100644 --- a/include/sieve/class_sieveElement_Vacation.inc +++ b/include/sieve/class_sieveElement_Vacation.inc @@ -105,7 +105,7 @@ class sieve_vacation { /* Get release date */ if(isset($_POST['vacation_release_'.$this->object_id])){ - $this->days = $_POST['vacation_release_'.$this->object_id]; + $this->days = stripslashes($_POST['vacation_release_'.$this->object_id]); } /* Check if we want to toggle the expert mode */ @@ -119,7 +119,7 @@ class sieve_vacation $tmp = array(); $tmp2 = split(",",$vr); foreach($tmp2 as $val){ - $ad = trim(preg_replace("/\"/","",$val)); + $ad = trim($val); if(!empty($ad)){ $tmp[] = $ad; }