mirror of
https://gitlab.com/commento/commento.git
synced 2025-06-30 11:06:37 -04:00
config_file.go: trim whitespace before processing
This commit is contained in:
@ -16,7 +16,7 @@ func configFileLoad(filepath string) error {
|
|||||||
|
|
||||||
scanner := bufio.NewScanner(file)
|
scanner := bufio.NewScanner(file)
|
||||||
for scanner.Scan() {
|
for scanner.Scan() {
|
||||||
line := scanner.Text()
|
line := strings.TrimSpace(scanner.Text())
|
||||||
|
|
||||||
i := strings.Index(line, "=")
|
i := strings.Index(line, "=")
|
||||||
if i == -1 {
|
if i == -1 {
|
||||||
|
Reference in New Issue
Block a user