thelounge/src
Nachtalb 14d76f8023
Add proper filename to the content-disposition header
By default we take the slug given in the request, if this is not set we try to give a filename from known types.
If we still have no filename we fallback to the previous method of setting no filename.

If the filename is non ascii we will only create the encoded "filename*" and not the ascii only "filename". This is to prevent other applications to save a file like "?????.png" if the filename contains non ascii chars.

For the browsers nothing will really change comapred to the behaviour before this change as good fallbacks if no content-disposition filename is set. But that is not the case for all application, thus it makes sense to include the proper way to set the filename.
2021-04-11 15:41:21 +02:00
..
command-line Make add and reset CLI commands scriptable 2020-10-07 09:00:00 +03:00
models Also use the networks specific leave message on quit 2020-12-18 10:53:40 +01:00
plugins Add proper filename to the content-disposition header 2021-04-11 15:41:21 +02:00
client.js Upgrade to socket.io v3 2021-02-28 15:30:44 -08:00
clientManager.js Fixing thelounge username case-sensitivity - issue#2943 2020-06-23 13:01:06 +01:00
helper.js Add version support for packages. 2020-08-21 15:03:12 +01:00
identification.js Run format after updating to prettier 2.0 2020-03-21 22:55:36 +02:00
log.js Run format after updating to prettier 2.0 2020-03-21 22:55:36 +02:00
server.js Merge pull request #4171 from emilyst/patch-1 2021-03-02 13:10:03 -08:00