mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
fixes GHSA-hghg-37rg-7r42 increase security on secret_key
This commit is contained in:
+1
-1
@@ -351,7 +351,7 @@ define(\'DB_COLLATE\', \'\');
|
||||
|
||||
$query = '
|
||||
INSERT INTO '.$prefixeTable.'config (param,value,comment)
|
||||
VALUES (\'secret_key\',md5('.pwg_db_cast_to_text(DB_RANDOM_FUNCTION.'()').'),
|
||||
VALUES (\'secret_key\',\''.sha1(random_bytes(1000)).'\'),
|
||||
\'a secret key specific to the gallery for internal use\');';
|
||||
pwg_query($query);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user