Do not panic if there is no text on the line; closes pterodactyl/panel#2369
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user