mirror of
https://gitlab.com/commento/commento.git
synced 2025-06-30 11:06:37 -04:00
config_file.go: allow comments with hash prefix
This commit is contained in:
@ -21,6 +21,10 @@ func configFileLoad(filepath string) error {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if strings.HasPrefix(line, "#") {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
i := strings.Index(line, "=")
|
i := strings.Index(line, "=")
|
||||||
if i == -1 {
|
if i == -1 {
|
||||||
continue
|
continue
|
||||||
|
Reference in New Issue
Block a user