Use correct case-insensitive regex; closes pterodactyl/panel#2546

This commit is contained in:
Dane Everitt 2020-10-22 20:22:27 -07:00
parent 903902e123
commit c73d632e0d
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53

View File

@ -217,7 +217,7 @@ func (sc *SystemConfiguration) ConfigureTimezone() error {
}
}
sc.Timezone = regexp.MustCompile(`[^a-z_/]+/ig`).ReplaceAllString(sc.Timezone, "")
sc.Timezone = regexp.MustCompile(`(?i)[^a-z_/]+`).ReplaceAllString(sc.Timezone, "")
_, err := time.LoadLocation(sc.Timezone)