Do not panic if there is no text on the line; closes pterodactyl/panel#2369
This commit is contained in:
parent
522c6c17e4
commit
342c3ea565
|
@ -437,8 +437,7 @@ func (f *ConfigurationFile) parsePropertiesFile(path string) error {
|
|||
scanner := bufio.NewScanner(f2)
|
||||
for scanner.Scan() {
|
||||
text := scanner.Text()
|
||||
|
||||
if text[0] != '#' {
|
||||
if len(text) > 0 && text[0] != '#' {
|
||||
break
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user