Skip to content

Commit

Permalink
remove erroneous ; on line 374 of functions.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ronm123 committed Aug 5, 2024
1 parent 3123b65 commit 8cc0530
Showing 1 changed file with 1 addition and 1 deletion.
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 != null ? $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

0 comments on commit 8cc0530

Please sign in to comment.