Changeset 0c7fe2f in github
- Timestamp:
- Aug 24, 2011 3:31:40 AM (21 months ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.7, release-0.8
- Children:
- 886aafe
- Parents:
- dc294e6
- Files:
-
- 2 edited
-
CHANGELOG (modified) (1 diff)
-
program/include/rcube_imap_generic.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
CHANGELOG
rdc294e6 r0c7fe2f 2 2 =========================== 3 3 4 - Added unique connection identifier to IMAP debug messages 4 5 - Added 'priority' column on messages list (#1486782) 5 6 - Fix image type check for contact photo uploads -
program/include/rcube_imap_generic.php
r7a2bade r0c7fe2f 106 106 private $cmd_tag; 107 107 private $cmd_num = 0; 108 private $resourceid; 108 109 private $_debug = false; 109 110 private $_debug_handler = false; … … 735 736 $line = trim(fgets($this->fp, 8192)); 736 737 737 if ($this->_debug && $line) { 738 $this->debug('S: '. $line); 738 if ($this->_debug) { 739 // set connection identifier for debug output 740 preg_match('/#([0-9]+)/', (string)$this->fp, $m); 741 $this->resourceid = strtoupper(substr(md5($m[1].$this->user.microtime()), 0, 4)); 742 743 if ($line) 744 $this->debug('S: '. $line); 739 745 } 740 746 … … 3362 3368 private function debug($message) 3363 3369 { 3370 if ($this->resourceid) { 3371 $message = sprintf('[%s] %s', $this->resourceid, $message); 3372 } 3373 3364 3374 if ($this->_debug_handler) { 3365 3375 call_user_func_array($this->_debug_handler, array(&$this, $message));
Note: See TracChangeset
for help on using the changeset viewer.
