Skip to content

Commit

Permalink
Documents: Fix file not found because folder ends in a dot BT#18485
Browse files Browse the repository at this point in the history
  • Loading branch information
jmontoyaa committed Feb 24, 2021
1 parent 676c2aa commit 3b84fe1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/inc/lib/security.lib.php
Expand Up @@ -59,7 +59,7 @@ public static function check_abs_path($abs_path, $checker_path)
}

// Clean $abs_path.
$abs_path = str_replace(['//', '../', './'], ['/', '', ''], $abs_path);
$abs_path = str_replace(['//', '../'], ['/', ''], $abs_path);
$true_path = str_replace("\\", '/', realpath($abs_path));
$checker_path = str_replace("\\", '/', realpath($checker_path));

Expand Down

0 comments on commit 3b84fe1

Please sign in to comment.