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()