mirror of
https://github.com/glanceapp/glance.git
synced 2024-12-14 17:13:11 +03:00
Add some foolproofery
This commit is contained in:
parent
e1161b9227
commit
4de465e544
@ -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/") {
|
||||
|
Loading…
Reference in New Issue
Block a user