From db51f1b0639632007bec852f392b781285bd9da9 Mon Sep 17 00:00:00 2001 From: ed Date: Fri, 12 May 2023 21:01:34 +0000 Subject: [PATCH] cfg: allow trailing colon on category headers --- copyparty/authsrv.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/copyparty/authsrv.py b/copyparty/authsrv.py index 12b7c688..e49971b7 100644 --- a/copyparty/authsrv.py +++ b/copyparty/authsrv.py @@ -841,6 +841,9 @@ class AuthSrv(object): if not ln.split("#")[0].strip(): continue + if re.match(r"^\[.*\]:$", ln): + ln = ln[:-1] + subsection = ln in (catx, catf) if ln.startswith("[") or subsection: self._e()