From 9494ff9cb0e917fb11d2281fe0ffb04a8c40b6db Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Tue, 23 Jan 2018 18:56:25 -0500 Subject: Don't allow slases in filnames, I really need to do a better job of parsing this bullshit --- app/dispatch/misc.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/dispatch/misc.py b/app/dispatch/misc.py index 42b00d3..7bcdaa8 100644 --- a/app/dispatch/misc.py +++ b/app/dispatch/misc.py @@ -63,6 +63,7 @@ def zip_attachments_for_loads(loads, pre_append, date): ext = '.pdf' desc = l.description.replace('"', '') + desc = l.description.replace('/', '--') # Get the name for the zip file zipname = desc + '-' + l.user.identity.name + ext -- cgit v1.2.3