From ae3fee228e90fa646add4a6bf1354d901ff2b5ed Mon Sep 17 00:00:00 2001 From: trinidz Date: Wed, 21 Aug 2024 11:27:28 +0000 Subject: [PATCH] fix linting issue --- server/ctrladmin/handlers.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/server/ctrladmin/handlers.go b/server/ctrladmin/handlers.go index 1d0f02d8..3dca4a9b 100644 --- a/server/ctrladmin/handlers.go +++ b/server/ctrladmin/handlers.go @@ -715,5 +715,10 @@ func (c *Controller) ServerExportOpmlPodcastDo(w http.ResponseWriter, r *http.Re return } - w.Write([]byte(outp)) + if _, err := w.Write([]byte(outp)); err != nil { + sessAddFlashW(session, []string{"error writing opml file"}) + sessLogSave(session, w, r) + http.Redirect(w, r, r.Referer(), http.StatusSeeOther) + return + } }