Project

General

Profile

Bug #22369 » 13989_4-2_v3-usage.diff

Administrator Admin, 2010-07-26 18:02

View differences:

t3lib/class.t3lib_userauth.php (working copy)
// If new session or client tries to fix session...
if (!$id || !$this->isExistingSessionRecord($id)) {
// New random session-$id is made
$id = substr(md5(uniqid('').getmypid()),0,$this->hash_length);
$id = t3lib_div::getRandomHexString($this->hash_length);
// New session
$this->newSessionID = TRUE;
}
typo3/sysext/install/mod/class.tx_install_eid.php (working copy)
/**
* Main function which creates the ecryption key for the install tools AJAX call
* Main function which creates the ecryption key for the install tools AJAX call
* It stores the key in $this->content
*
* @return void
......
if (!headers_sent()) {
header("Content-type: text/plain");
}
$bytes = t3lib_div::generateRandomBytes($keyLength);
return substr(bin2hex($bytes), -96);
return t3lib_div::getRandomHexString($keyLength);
}
/**
(15-15/19)