mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-05-03 03:52:54 +02:00
fixes #373 ask a longer random string
to openssl_random_pseudo_bytes, to avoid reaching the base64 trailing "=" signs
This commit is contained in:
@@ -71,7 +71,7 @@ function generate_key($size)
|
||||
str_replace(
|
||||
array('+', '/'),
|
||||
'',
|
||||
base64_encode(openssl_random_pseudo_bytes($size))
|
||||
base64_encode(openssl_random_pseudo_bytes($size+10))
|
||||
),
|
||||
0,
|
||||
$size
|
||||
@@ -260,4 +260,4 @@ function pwg_unset_session_var($var)
|
||||
return true;
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user