Skip to content

Commit

Permalink
v1.04 - corrected
Browse files Browse the repository at this point in the history
  • Loading branch information
ArturSierzant committed Jul 24, 2018
1 parent 2e0a52f commit 41094f7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion update.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@
}
else {
$dir_to_update = myDecode($dir_to_update);
setcookie('update_dir', rtrim($dir_to_update,'/'), time() + (86400 * 30 * 365), "/");
if (substr($dir_to_update,-1) != DIRECTORY_SEPARATOR){
$dir_to_update = $dir_to_update . DIRECTORY_SEPARATOR;
}
//setcookie('update_dir', rtrim($dir_to_update,'/'), time() + (86400 * 30 * 365), "/");
setcookie('update_dir', $dir_to_update, time() + (86400 * 30 * 365), "/");
$cfg['force_filename_update'] = true;
}

Expand Down

0 comments on commit 41094f7

Please sign in to comment.