There appears to be an issue with uploaded files in Safari when the file names include quotes (particularly bad) or non-ASCII characters. The file names in question are:
Create New "Open File" Macro and Copy Macro URL 1.1.kmmacros Create New “Open File” Macro and Copy Macro URL 1.1.kmmacros
The first has regular double quotes and behaves very badly, the second has curly quotes and they get mangled.
See this forum topic:
In Chrome/Mac, both files download normally as:
Create New _Open File_ Macro and Copy Macro URL 1.1.kmmacros Create New “Open File” Macro and Copy Macro URL 1.1.kmmacros
The double quotes in the first file are replaced with underscores, but that is acceptable, presumably a deliberate choice somewhere.
However in Safari, the files downloads as:
Create New .dms Create New âOpen Fileâ Macro and Copy Macro URL 1.1.kmmacros
The first is particularly concerning, since the file name has been completely mangled, including the extension. There are potentially security implications with this as who knows how the quotes are being processed.
The second one appears to be a UTF conversion issue.
I suspect this is a regression, either in Discourse (my server is on 2.3.2) or in Safari, as I think we would have seen it earlier, but I could not find any specific older cases where the macros clearly had quotes in their names to check. There are definitely older files that have non-ASCII characters (eg here), and I have never noticed them to not work before.
It is particularly strange that it works in Chrome and not in Safari, so presumably it is some sort of client-side code issue.