Changeset b48d9bf in github


Ignore:
Timestamp:
Sep 7, 2009 8:51:21 AM (4 years ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
11ea2ac
Parents:
3d601d2
Message:
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • CHANGELOG

    r4a63f1ef rb48d9bf  
    22=========================== 
    33 
     4- Use faster/secure mt_rand() (#1486094) 
    45- Fix roundcube hangs on empty inbox with bincimapd (#1486093) 
    56- Fix wrong headers for IE on servers without $_SERVER['HTTPS'] (#1485926) 
  • program/include/rcmail.php

    ree258ce rb48d9bf  
    880880     
    881881    if (!$_SESSION['request_tokens'][$key]) 
    882       $_SESSION['request_tokens'][$key] = md5(uniqid($key . rand(), true)); 
     882      $_SESSION['request_tokens'][$key] = md5(uniqid($key . mt_rand(), true)); 
    883883     
    884884    return $_SESSION['request_tokens'][$key]; 
  • program/include/session.inc

    rdadefb8 rb48d9bf  
    246246 
    247247  for ($random = "", $i=1; $i <= 32; $i++) { 
    248     $random .= substr($randval, rand(0,(strlen($randval) - 1)), 1); 
     248    $random .= substr($randval, mt_rand(0,(strlen($randval) - 1)), 1); 
    249249  } 
    250250 
  • program/steps/mail/compose.inc

    r7df0e35 rb48d9bf  
    3838  rcmail_compose_cleanup(); 
    3939  $_SESSION['compose'] = array( 
    40     'id' => uniqid(rand()), 
     40    'id' => uniqid(mt_rand()), 
    4141    'param' => request2param(RCUBE_INPUT_GET), 
    4242    'mailbox' => $IMAP->get_mailbox_name(), 
  • program/steps/mail/func.inc

    r4f7aa85f rb48d9bf  
    14261426      'To'   => $message->headers->mdn_to, 
    14271427      'Subject' => rcube_label('receiptread') . ': ' . $message->subject, 
    1428       'Message-ID' => sprintf('<%s@%s>', md5(uniqid('rcmail'.rand(),true)), $RCMAIL->config->mail_domain($_SESSION['imap_host'])), 
     1428      'Message-ID' => sprintf('<%s@%s>', md5(uniqid('rcmail'.mt_rand(),true)), $RCMAIL->config->mail_domain($_SESSION['imap_host'])), 
    14291429      'X-Sender' => $identity['email'], 
    14301430      'Content-Type' => 'multipart/report; report-type=disposition-notification', 
  • program/steps/mail/sendmail.inc

    r2818f8e rb48d9bf  
    195195  $olddraftmessageid = get_input_value('_draft_saveid', RCUBE_INPUT_POST); 
    196196 
    197 $message_id = sprintf('<%s@%s>', md5(uniqid('rcmail'.rand(),true)), $RCMAIL->config->mail_domain($_SESSION['imap_host'])); 
     197$message_id = sprintf('<%s@%s>', md5(uniqid('rcmail'.mt_rand(),true)), $RCMAIL->config->mail_domain($_SESSION['imap_host'])); 
    198198 
    199199// set default charset 
Note: See TracChangeset for help on using the changeset viewer.