Skip to content

Commit

Permalink
Avoid reading directories.
Browse files Browse the repository at this point in the history
  • Loading branch information
kiarn committed Mar 4, 2022
1 parent b1f34ce commit 51477b2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions usr/lib/linuxmuster-webui/plugins/lmn_linbo4/views.py
Expand Up @@ -29,6 +29,7 @@ def handle_api_configs(self, http_context):
file.startswith('start.conf.')
and not file.endswith('.vdi')
and not os.path.islink(path)
and os.path.isfile(path)
):
with LMNFile(path, 'r') as f:
os_list = f.read().get('os', [])
Expand Down

0 comments on commit 51477b2

Please sign in to comment.