[Svn] r1953 - in trunk/roundcubemail: . program/steps/mail

trac at roundcube.net trac at roundcube.net
Tue Oct 7 18:54:07 CEST 2008


Author: alec
Date: 2008-10-07 11:54:07 -0500 (Tue, 07 Oct 2008)
New Revision: 1953

Modified:
   trunk/roundcubemail/CHANGELOG
   trunk/roundcubemail/program/steps/mail/func.inc
Log:
- Write username instead of id in sendmail log (#1485477)


Modified: trunk/roundcubemail/CHANGELOG
===================================================================
--- trunk/roundcubemail/CHANGELOG	2008-10-07 13:52:39 UTC (rev 1952)
+++ trunk/roundcubemail/CHANGELOG	2008-10-07 16:54:07 UTC (rev 1953)
@@ -1,6 +1,12 @@
 CHANGELOG RoundCube Webmail
 ---------------------------
 
+2008/10/07 (alec)
+----------
+- Write username instead of id in sendmail log (#1485477)
+- Fix htmlspecialchars() use for PHP version < 5.2.3 (#1485475)
+- Fix js keywords escaping in json_serialize() for IE/Opera (#1485472)
+
 2008/10/03 (alec)
 ----------
 - Add support for SJIS, GB2312, BIG5 in rc_detect_encoding()

Modified: trunk/roundcubemail/program/steps/mail/func.inc
===================================================================
--- trunk/roundcubemail/program/steps/mail/func.inc	2008-10-07 13:52:39 UTC (rev 1952)
+++ trunk/roundcubemail/program/steps/mail/func.inc	2008-10-07 16:54:07 UTC (rev 1953)
@@ -1154,7 +1154,7 @@
  */
 function rcmail_deliver_message(&$message, $from, $mailto)
 {
-  global $CONFIG;
+  global $CONFIG, $RCMAIL;
 
   $msg_body = $message->get();
   $headers = $message->headers();
@@ -1210,9 +1210,9 @@
     unset($headers['Return-Receipt-To'], $headers['Disposition-Notification-To']);
     
     if ($CONFIG['smtp_log'])
-      write_log('sendmail', sprintf("[%s] User: %d on %s; Message for %s; %s",
+      write_log('sendmail', sprintf("[%s] User: %s on %s; Message for %s; %s",
 		date("d-M-Y H:i:s O", mktime()),
-		$_SESSION['user_id'],
+		$RCMAIL->user->get_username(),
 		$_SERVER['REMOTE_ADDR'],
 		$mailto,
 		!empty($smtp_response) ? join('; ', $smtp_response) : ''));

_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn



More information about the Svn mailing list