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)
|
scanner := bufio.NewScanner(f2)
|
||||||
for scanner.Scan() {
|
for scanner.Scan() {
|
||||||
text := scanner.Text()
|
text := scanner.Text()
|
||||||
|
if len(text) > 0 && text[0] != '#' {
|
||||||
if text[0] != '#' {
|
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user