Changeset 79742f0 in github
- Timestamp:
- May 24, 2012 3:07:56 PM (12 months ago)
- Branches:
- master, HEAD, dev-browser-capabilities, pdo
- Children:
- c083969
- Parents:
- 4a5c1f5 (diff), b332e79 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - Files:
-
- 9 edited
-
.htaccess (modified) (1 diff)
-
plugins/hide_blockquote/hide_blockquote.js (modified) (1 diff)
-
plugins/hide_blockquote/skins/default/style.css (modified) (1 diff)
-
plugins/password/config.inc.php.dist (modified) (1 diff)
-
plugins/password/drivers/virtualmin.php (modified) (1 diff)
-
program/include/rcmail.php (modified) (1 diff)
-
program/include/rcube_imap_cache.php (modified) (2 diffs)
-
program/include/rcube_imap_generic.php (modified) (1 diff)
-
program/include/rcube_session.php (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
.htaccess
ra93f39a rb332e79 31 31 RewriteRule ^favicon\.ico$ skins/default/images/favicon.ico 32 32 # security rules 33 RewriteRule .git /- [F]34 RewriteRule ^ README|INSTALL|LICENSE|SQL|bin|CHANGELOG$ - [F]33 RewriteRule .git - [F] 34 RewriteRule ^/?(README(.md)?|INSTALL|LICENSE|SQL|bin|CHANGELOG)$ - [F] 35 35 </IfModule> 36 36 -
plugins/hide_blockquote/hide_blockquote.js
r85a6173 r4a5c1f5 25 25 .text(res[0]); 26 26 27 link = $('<span class="blockquote-link"> ')27 link = $('<span class="blockquote-link"></span>') 28 28 .css({position: 'absolute', 'z-Index': 2}) 29 29 .text(rcmail.gettext('hide_blockquote.show')) -
plugins/hide_blockquote/skins/default/style.css
r85a6173 r4a5c1f5 18 18 border-bottom-right-radius: 6px; 19 19 border-bottom-left-radius: 6px; 20 background: #f ff;20 background: #f8f8f8; 21 21 background: -moz-linear-gradient(top, #f8f8f8 0%, #e8e8e8 100%); 22 22 background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f8f8f8), color-stop(100%,#e8e8e8)); -
plugins/password/config.inc.php.dist
r48e9c14 r6ffe0be 309 309 // 6: username_domain 310 310 // 7: domain_username 311 $rcmail_config['password_virtualmin_format'] = 0; 311 // 8: username@domain; mbox.username 312 $rcmail_config['password_virtualmin_format'] = 8; 312 313 313 314 -
plugins/password/drivers/virtualmin.php
r48e9c14 r6ffe0be 49 49 $domain = $pieces[0]; 50 50 break; 51 case 8: // domain taken from alias, username left as it was 52 $email = $rcmail->user->data['alias']; 53 $domain = substr(strrchr($email, "@"), 1); 54 break 51 55 default: // username@domain 52 56 $domain = substr(strrchr($username, "@"), 1); -
program/include/rcmail.php
r041c93c rb97f21a 2011 2011 } 2012 2012 2013 public function imap_init() 2014 { 2015 return $this->storage_init(); 2016 } 2017 2013 2018 /** 2014 2019 * Connect to the mail storage server with stored session data -
program/include/rcube_imap_cache.php
r041c93c r7eb4f2e 312 312 $result[$uid] = $this->build_message($sql_arr); 313 313 314 // save memory, we don't need message body here (?)315 $result[$uid]->body = null;316 317 314 if (!empty($result[$uid])) { 315 // save memory, we don't need message body here (?) 316 $result[$uid]->body = null; 317 318 318 unset($msgs[$uid]); 319 319 } … … 1147 1147 } 1148 1148 } 1149 1150 // for backward compat. 1151 class rcube_mail_header extends rcube_message_header { } -
program/include/rcube_imap_generic.php
r041c93c r43918dd2 26 26 +-----------------------------------------------------------------------+ 27 27 */ 28 29 // for backward compat.30 class rcube_mail_header extends rcube_message_header { }31 28 32 29 -
program/include/rcube_session.php
r041c93c r4d708e6 38 38 private $gc_handlers = array(); 39 39 private $cookiename = 'roundcube_sessauth'; 40 private $vars = false;40 private $vars; 41 41 private $key; 42 42 private $now; … … 135 135 $this->key = $key; 136 136 137 if (!empty($this->vars)) 138 return $this->vars; 139 } 140 141 return false; 137 return !empty($this->vars) ? (string) $this->vars : ''; 138 } 139 140 return null; 142 141 } 143 142 … … 158 157 // no session row in DB (db_read() returns false) 159 158 if (!$this->key) { 160 $oldvars = false;159 $oldvars = null; 161 160 } 162 161 // use internal data from read() for fast requests (up to 0.5 sec.) … … 168 167 } 169 168 170 if ($oldvars !== false) {169 if ($oldvars !== null) { 171 170 $newvars = $this->_fixvars($vars, $oldvars); 172 171 … … 198 197 private function _fixvars($vars, $oldvars) 199 198 { 200 if ($oldvars !== false) {199 if ($oldvars !== null) { 201 200 $a_oldvars = $this->unserialize($oldvars); 202 201 if (is_array($a_oldvars)) { … … 266 265 $this->key = $key; 267 266 268 if (!empty($this->vars))269 return $this->vars;270 } 271 272 return false;273 } 267 return !empty($this->vars) ? (string) $this->vars : ''; 268 } 269 270 return null; 271 } 272 274 273 275 274 /** … … 287 286 // no session data in cache (mc_read() returns false) 288 287 if (!$this->key) 289 $oldvars = false;288 $oldvars = null; 290 289 // use internal data for fast requests (up to 0.5 sec.) 291 290 else if ($key == $this->key && (!$this->vars || $ts - $this->start < 0.5)) … … 294 293 $oldvars = $this->mc_read($key); 295 294 296 $newvars = $oldvars !== false? $this->_fixvars($vars, $oldvars) : $vars;297 295 $newvars = $oldvars !== null ? $this->_fixvars($vars, $oldvars) : $vars; 296 298 297 if ($newvars !== $oldvars || $ts - $this->changed > $this->lifetime / 2) 299 298 return $this->memcache->set($key, serialize(array('changed' => time(), 'ip' => $this->ip, 'vars' => $newvars)), MEMCACHE_COMPRESSED, $this->lifetime); 300 301 return true; 302 } 299 300 return true; 301 } 302 303 303 304 304 /** … … 351 351 session_regenerate_id($destroy); 352 352 353 $this->vars = false;353 $this->vars = null; 354 354 $this->key = session_id(); 355 355 … … 374 374 return true; 375 375 } 376 376 377 377 378 /** 378 379 * Kill this session … … 380 381 public function kill() 381 382 { 382 $this->vars = false;383 $this->vars = null; 383 384 $this->ip = $_SERVER['REMOTE_ADDR']; // update IP (might have changed) 384 385 $this->destroy(session_id());
Note: See TracChangeset
for help on using the changeset viewer.
