Bug fix : secret key was allways the same and was absolutly not random !
git-svn-id: http://piwigo.org/svn/trunk@6130 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
de494ee55d
commit
4eb631dd5a
1 changed files with 1 additions and 1 deletions
|
|
@ -312,7 +312,7 @@ define(\'DB_COLLATE\', \'\');
|
||||||
|
|
||||||
$query = '
|
$query = '
|
||||||
INSERT INTO '.$prefixeTable.'config (param,value,comment)
|
INSERT INTO '.$prefixeTable.'config (param,value,comment)
|
||||||
VALUES (\'secret_key\',\'md5('.pwg_db_cast_to_text(DB_RANDOM_FUNCTION.'()').')\',
|
VALUES (\'secret_key\',md5('.pwg_db_cast_to_text(DB_RANDOM_FUNCTION.'()').'),
|
||||||
\'a secret key specific to the gallery for internal use\');';
|
\'a secret key specific to the gallery for internal use\');';
|
||||||
pwg_query($query);
|
pwg_query($query);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue