Code

Updated notify event, encode subject ot
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 30 Apr 2008 12:59:36 +0000 (12:59 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 30 Apr 2008 12:59:36 +0000 (12:59 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10747 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/addons/goto/events/class_DaemonEvent_notify.inc

index 16a2796f9e96518f62170681655347d1dc52bfd2..734e928c52f6c7d39cbb8a793e3ece5912014435 100644 (file)
@@ -39,6 +39,7 @@ class DaemonEvent_notify extends DaemonEvent
     $this->from = $ui->cn; 
  
     $this->message = base64_decode($this->message);
+    $this->subject = base64_decode($this->subject);
 
     $this->s_Menu_Name  = _("Send message");
     $this->s_Event_Name = _("Send message");
@@ -198,7 +199,7 @@ class DaemonEvent_notify extends DaemonEvent
     $ret = DaemonEvent::save();
     $ret['users']   = array_values($this->users);
     $ret['groups']  = array_values($this->groups);
-    $ret['subject'] = $this->subject;
+    $ret['subject'] = base64_encode($this->subject);
     $ret['from']    = $this->from;
     $ret['message'] = base64_encode($this->message);
     return($ret);