Fix downloader path validation on subdir (#46061)

This commit is contained in:
Steven Rollason 2021-02-06 13:05:50 +00:00 committed by GitHub
parent 242ff045b9
commit 08163a848c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,6 +70,7 @@ def setup(hass, config):
overwrite = service.data.get(ATTR_OVERWRITE) overwrite = service.data.get(ATTR_OVERWRITE)
if subdir:
# Check the path # Check the path
raise_if_invalid_path(subdir) raise_if_invalid_path(subdir)