mirror of
https://gitlab.com/commento/commento.git
synced 2025-06-29 22:56:37 -04:00
config_file.go: skip newlines
This commit is contained in:
@ -17,6 +17,9 @@ func configFileLoad(filepath string) error {
|
||||
scanner := bufio.NewScanner(file)
|
||||
for scanner.Scan() {
|
||||
line := strings.TrimSpace(scanner.Text())
|
||||
if line == "" {
|
||||
continue
|
||||
}
|
||||
|
||||
i := strings.Index(line, "=")
|
||||
if i == -1 {
|
||||
|
Reference in New Issue
Block a user