Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
torinfo committed Aug 5, 2024
1 parent 3ebaba8 commit 3123b65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ function x_check_zip($zip)

function x_check_path_traversal($path, $expected_path=null, $message=null)
{
$mesg = $message ?? "Path traversal detected!";
$mesg = ($message != null ? $message ;: "Path traversal detected!");
// Account for Windows, because realpath changes / to \
if(DIRECTORY_SEPARATOR !== '/') {
$rpath = str_replace('/', DIRECTORY_SEPARATOR, $path);
Expand Down
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
login_processing();
login_processing2();

if($_SESSION["toManagement"] || $_SESSION['toolkits_logon_id'] === 'site_administrator'){
if(isset($_SESSION["toManagement"]) || $_SESSION['toolkits_logon_id'] === 'site_administrator'){
unset($_SESSION["toManagement"]);
header("location: management.php");
exit();
Expand Down

0 comments on commit 3123b65

Please sign in to comment.