diff options
| author | 2013-11-16 10:33:40 +0100 | |
|---|---|---|
| committer | 2013-11-16 10:33:40 +0100 | |
| commit | 0b681a79e96ececa84ec51a9777ff73efcbc83a5 (patch) | |
| tree | 7da28eb42d644473e2a80c2d37f36d76ac016b35 /public | |
| parent | b54331dd8585296042cc58bb02ba99dd9bb837f7 (diff) | |
Améliore génération du sel (installation)
Utilise une méthode moins prédictible
Voir e9168f6cd21d7e95aff183f2a503911a1208a0af
Diffstat (limited to 'public')
| -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 dba088148..fa4d59f20 100644 --- a/public/install.php +++ b/public/install.php @@ -142,8 +142,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']; |
