Merge pull request #1647 from YunoHost/enh_well-known

[enh] exclude .well-known subpaths from conflict checks
This commit is contained in:
Tagada 2024-08-15 20:50:17 +02:00 committed by GitHub
commit f88e4cacdf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2937,7 +2937,7 @@ def _get_conflicting_apps(domain, path, ignore_app=None):
for p, a in apps_map[domain].items():
if a["id"] == ignore_app:
continue
if path == p or path == "/" or p == "/":
if path == p or ( not path.startswith("/.well-known/") and ( path == "/" or p == "/" ) ):
conflicts.append((p, a["id"], a["label"]))
return conflicts