diff --git a/network/get_url b/network/get_url index e2384e4ebd5..5c5faa4624a 100644 --- a/network/get_url +++ b/network/get_url @@ -169,7 +169,7 @@ def extract_filename_from_headers(headers): Looks for the content-disposition header and applies a regex. Returns the filename if successful, else None.""" - cont_disp_regex = 'attachment; ?filename="(.+)"' + cont_disp_regex = 'attachment; ?filename="?([^"]+)' res = None if 'content-disposition' in headers: