Code

Replaced print_red with msg_dialog, for testing
[gosa.git] / include / sieve / class_sieveElement_Comment.inc
index e8caa157ca64ec0c812864e80bfefb046c663470..deaa4f3120ba68ca16e18555117fdbb33c32b929 100644 (file)
@@ -17,7 +17,7 @@ class sieve_comment
   {
     $this->object_id = $object_id;
 
-    if($data == NULL){
+    if($data === NULL){
       $data = array('ELEMENTS' => array(array('class' => "quoted-string" ,"text" => "/*"._("Your comment here")."*/")));
     }
 
@@ -51,6 +51,7 @@ class sieve_comment
   {
     if(isset($_POST['comment_'.$this->object_id])){
       $cm = stripslashes( $_POST['comment_'.$this->object_id]);
+      $cm = preg_replace("/\*\//","* /",$cm);
       $this->data = $cm;
     }