1
0
mirror of https://github.com/schollz/cowyo.git synced 2023-08-10 21:13:00 +03:00

Merge pull request #67 from Silvus/patch-1

Json files should not be executable

Former-commit-id: 4f74e31d1e3b575b25e302850dff7b9d56a7a469
This commit is contained in:
Zack 2017-03-24 17:59:40 -06:00 committed by GitHub
commit 86c86779dd

View File

@ -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 {