Add some foolproofery
This commit is contained in:
1 parent
e1161b9227
commit
4de465e544
1 file changed
+2
@@ -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