mirror of
https://github.com/glanceapp/glance.git
synced 2024-12-15 09:34:26 +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 = &app.Config
|
||||||
|
|
||||||
|
config.Server.BaseURL = strings.TrimRight(config.Server.BaseURL, "/")
|
||||||
|
|
||||||
if config.Server.BaseURL != "" &&
|
if config.Server.BaseURL != "" &&
|
||||||
config.Theme.CustomCSSFile != "" &&
|
config.Theme.CustomCSSFile != "" &&
|
||||||
strings.HasPrefix(config.Theme.CustomCSSFile, "/assets/") {
|
strings.HasPrefix(config.Theme.CustomCSSFile, "/assets/") {
|
||||||
|
Loading…
Reference in New Issue
Block a user