about summary refs log tree commit diff
path: root/pkgs/servers/home-assistant/patches/static-follow-symlinks.patch
blob: c99a8d88a1e8b58fb246181eeb2c66edc4afb6fa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/homeassistant/components/http/static.py b/homeassistant/components/http/static.py
index e6e773d4c0..b53e0b4a11 100644
--- a/homeassistant/components/http/static.py
+++ b/homeassistant/components/http/static.py
@@ -31,7 +31,6 @@ def _get_file_path(rel_url: str, directory: Path) -> Path | None:
         # where the static dir is totally different
         raise HTTPForbidden
     filepath: Path = directory.joinpath(filename).resolve()
-    filepath.relative_to(directory)
     # on opening a dir, load its contents if allowed
     if filepath.is_dir():
         return None