- commit
- 5e46398
- parent
- b7e5d08
- author
- Eric Bower
- date
- 2024-04-23 00:35:37 +0000 UTC
fix: more restrictive perms on static files Closes #3
1 files changed,
+1,
-1
M
main.go
M
main.go
+1,
-1
1@@ -322,7 +322,7 @@ func (c *Config) writeHtml(writeData *WriteData) {
2 fp := filepath.Join(dir, writeData.Filename)
3 c.Logger.Info("writing", "filepath", fp)
4
5- w, err := os.OpenFile(fp, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0755)
6+ w, err := os.OpenFile(fp, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0644)
7 bail(err)
8
9 err = ts.Execute(w, writeData.Data)