mirror of
https://github.com/Xevion/glance.git
synced 2026-01-31 08:24:25 -06:00
Add some foolproofery
This commit is contained in:
@@ -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/") {
|
||||||
|
|||||||
Reference in New Issue
Block a user