mirror of
https://github.com/glanceapp/glance.git
synced 2025-07-05 01:00:14 +02:00
Add some foolproofery
This commit is contained in:
@ -133,6 +133,8 @@ func NewApplication(config *Config) (*Application, error) {
|
||||
|
||||
config = &app.Config
|
||||
|
||||
config.Server.BaseURL = strings.TrimRight(config.Server.BaseURL, "/")
|
||||
|
||||
if config.Server.BaseURL != "" &&
|
||||
config.Theme.CustomCSSFile != "" &&
|
||||
strings.HasPrefix(config.Theme.CustomCSSFile, "/assets/") {
|
||||
|
Reference in New Issue
Block a user