diff options
| author | 2013-11-16 10:33:40 +0100 | |
|---|---|---|
| committer | 2013-11-16 10:37:23 +0100 | |
| commit | 4df9c21d3a24816ec581e772fa4c1f38a753e9d7 (patch) | |
| tree | 243bfd5fbf3fa24d8de1b70d9384191f8d8968c6 /public/install.php | |
| parent | cf185d4a8b71fcad10f3aa0eb428ab613620990d (diff) | |
Améliore génération du sel (installation)
Utilise une méthode moins prédictible
Voir e9168f6cd21d7e95aff183f2a503911a1208a0af
Diffstat (limited to 'public/install.php')
| -rw-r--r-- | public/install.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/public/install.php b/public/install.php index 07e18dd37..457605224 100644 --- a/public/install.php +++ b/public/install.php @@ -145,8 +145,9 @@ function saveStep2 () { return false; } - $first_sel = small_hash (time ()); - $_SESSION['sel'] = small_hash (time () . $first_sel) . $first_sel; + $_SESSION['sel'] = md5 ( + uniqid (mt_rand (), true).implode ('', stat (__FILE__)) + ); $_SESSION['base_url'] = addslashes ($_POST['base_url']); $_SESSION['title'] = addslashes ($_POST['title']); $_SESSION['old_entries'] = $_POST['old_entries']; |
