From 850733197b3f96e2095def201b9fb47450626953 Mon Sep 17 00:00:00 2001 From: Silvus Date: Sat, 25 Mar 2017 00:52:37 +0100 Subject: [PATCH] Json files should not be executable --- page.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/page.go b/page.go index 6b33ac6..e78d147 100755 --- a/page.go +++ b/page.go @@ -87,7 +87,7 @@ func (p *Page) Save() error { if err != nil { return err } - return ioutil.WriteFile(path.Join(pathToData, encodeToBase32(strings.ToLower(p.Name))+".json"), bJSON, 0755) + return ioutil.WriteFile(path.Join(pathToData, encodeToBase32(strings.ToLower(p.Name))+".json"), bJSON, 0644) } func (p *Page) Erase() error {