Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions filebeat/datadog_checks/filebeat/filebeat.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,8 @@ def _process_registry(self, config):

def _parse_registry_file(self, registry_file_path):
try:
if ".." in registry_file_path:
raise Exception("Invalid file path")
with open(registry_file_path) as registry_file:
return json.load(registry_file)
except IOError as ex:
Expand Down