Skip to content

Commit

Permalink
Error with "stay logged in"
Browse files Browse the repository at this point in the history
Change from Issue cosmocode#16
  • Loading branch information
bob4os authored May 21, 2021
1 parent 3ed4c3d commit 26f61ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ function set_session($user,$pass,$dn){
function get_cookie_secret(){
$file = dirname(__FILE__).'/../cache/.htcookiesecret.php';
if(@file_exists($file)){
return md5(trim(file($file)));
return md5(trim(file_get_contents($file)));
}

$secret = '<?php #'.(rand()*time()).'?>';
Expand Down

0 comments on commit 26f61ea

Please sign in to comment.