~emersion/hut

42d8f5accffc2b55a2c6f88f5e755b35d50c8385 — Simon Ser 6 months ago 344337b
export/paste: ignore empty filenames
1 files changed, 1 insertions(+), 1 deletions(-)

M export/paste.go
M export/paste.go => export/paste.go +1 -1
@@ 113,7 113,7 @@ func (ex *PasteExporter) exportFile(ctx context.Context, paste *pastesrht.Paste,
	defer resp.Body.Close()

	name := paste.Id
	if file.Filename != nil {
	if file.Filename != nil && *file.Filename != "" {
		name = *file.Filename
	}