mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
cfg: allow trailing colon on category headers
This commit is contained in:
parent
d979c47f50
commit
db51f1b063
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue