diff options
author | r <r@freesoftwareextremist.com> | 2023-10-15 15:46:54 +0000 |
---|---|---|
committer | r <r@freesoftwareextremist.com> | 2023-10-15 15:46:54 +0000 |
commit | ed521dd33d0d002c577a75e349136fed25b7fda5 (patch) | |
tree | e591517207ee9283e450a032530668d3b81ff9e7 /main.go | |
parent | 927072e26a470ed3084e36ae2413f4dfd088905f (diff) | |
download | bloat-ed521dd33d0d002c577a75e349136fed25b7fda5.tar.gz bloat-ed521dd33d0d002c577a75e349136fed25b7fda5.zip |
Restrict instance level custom CSS to static directory
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 9 |
1 files changed, 1 insertions, 8 deletions
@@ -8,7 +8,6 @@ import ( "net/http" "os" "path/filepath" - "strings" "bloat/config" "bloat/renderer" @@ -47,14 +46,8 @@ func main() { errExit(err) } - customCSS := config.CustomCSS - if len(customCSS) > 0 && !strings.HasPrefix(customCSS, "http://") && - !strings.HasPrefix(customCSS, "https://") { - customCSS = "/static/" + customCSS - } - s := service.NewService(config.ClientName, config.ClientScope, - config.ClientWebsite, customCSS, config.SingleInstance, + config.ClientWebsite, config.CustomCSS, config.SingleInstance, config.PostFormats, renderer) handler := service.NewHandler(s, *verbose, config.StaticDirectory) |