Skip to content

Commit

Permalink
Fixing missing global config variable
Browse files Browse the repository at this point in the history
  • Loading branch information
marekrei committed Dec 2, 2024
1 parent 50dc54e commit 2ac0908
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -1921,6 +1921,7 @@ public static function showThumbnail($file)

public static function isAllowedToOpenPath($file)
{
global $_CONFIG;
if(realpath($file) && str_starts_with(realpath($file), realpath($_CONFIG['starting_dir'])))
return true;
return false;
Expand Down

0 comments on commit 2ac0908

Please sign in to comment.