From 58dbd9499bd14c3c3256648485598b2a8d3c6644 Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Sat, 19 Jan 2019 15:12:06 +0100 Subject: [PATCH] sync: fix report display with some security headers --- admin/static/check_import.html | 12 ++++++++++-- admin/sync/full.go | 2 -- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/admin/static/check_import.html b/admin/static/check_import.html index afa6c742..25787ade 100644 --- a/admin/static/check_import.html +++ b/admin/static/check_import.html @@ -3,7 +3,7 @@ Rapport d'import FIC - + + diff --git a/admin/sync/full.go b/admin/sync/full.go index 070b3120..c92ec6b3 100644 --- a/admin/sync/full.go +++ b/admin/sync/full.go @@ -62,14 +62,12 @@ func SyncDeep(i Importer) (errs map[string][]string) { if fdto, err := os.Create(DeepReportPath); err == nil { defer fdto.Close() - fdto.Write([]byte("disp(")) if out, err := json.Marshal(errs); err == nil { fdto.Write(out) } else { errs["_regeneration"] = append(errs["_regeneration"], err.Error()) log.Println(err) } - fdto.Write([]byte(");")) } else { errs["_regeneration"] = append(errs["_regeneration"], err.Error()) log.Println(err)