Skip to content

A free, self-hostable news aggregator…

Améliore génération du sel (installation)

Marien Fressinaud0b681a79e96e
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'];