Skip to content

Commit

Permalink
Fixed home directory check in AdminSystemFiles to work with symbolic …
Browse files Browse the repository at this point in the history
…links.
  • Loading branch information
jepf committed Jun 21, 2024
1 parent 6fb9f93 commit 59403d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# 7.0.19 2024-??-??
- 2024-06-19 Fixed home directory check in AdminSystemFiles to work with symbolic links.
- 2024-06-07 Fixed value used for owner lookup in AgentTicketProcess. Thanks to Falko Saller (@falkos). [#556](https://github.com/znuny/Znuny/pull/556)
- 2024-06-03 Fixed CSS problem with displaying articles in ticket details view.
- 2024-05-28 Fixed caching for queue updates.
Expand Down
4 changes: 3 additions & 1 deletion Kernel/Modules/AdminSystemFiles.pm
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,9 @@ sub _IsZnunyFile {

my $AbsoluteFilePath = abs_path( $Param{File} );

my $Home = $ConfigObject->Get('Home');
# Use absolute path of configured home directory to be able
# to compare with potential symbolic links.
my $Home = abs_path( $ConfigObject->Get('Home') );

return if $AbsoluteFilePath !~ m{\A\Q$Home\E};

Expand Down

0 comments on commit 59403d5

Please sign in to comment.