Use correct case-insensitive regex; closes pterodactyl/panel#2546
This commit is contained in:
parent
903902e123
commit
c73d632e0d
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user