pad.libre-service.eu-etherpad/src
Tudor Constantin 28102d8e1f ImportHandler: importing files with unknown extension work again when allowUnknownFileEnds is true
By specification, when settings.allowUnknownFileEnds is true and the user tries
to import a file with an unknown extension (this includes no extension),
Etherpad tries to import it as txt.

This broke in Etherpad 1.8.0, that abruptly terminates the processing with an
UnhandledPromiseRejectionWarning.

This patch restores the intended behaviour, and allows to import as text a file
with an unknown extension (on no extension).

In order to catch the UnhandledPromiseRejectionWarning we had to use
fsp_rename(), which is declared earlier in the code and is promised based
instead of fs.rename(), which is callback based.

Fixes #3710.
2020-03-17 12:41:18 +01:00
..
locales Localisation updates from https://translatewiki.net. 2020-03-16 15:41:54 +01:00
node ImportHandler: importing files with unknown extension work again when allowUnknownFileEnds is true 2020-03-17 12:41:18 +01:00
static trim text entries upon import. Fixes: #3620 2020-03-15 11:35:08 +00:00
templates pad.html: fix regression introduced with 5879037ddc. 2019-11-30 20:32:39 +01:00
ep.json Initial work on swagger 2013-03-06 10:10:21 +00:00
etherpad_icon.svg Add new favicon (32x32) with associated svg file 2015-01-11 22:40:56 +01:00
package-lock.json dependencies: upgrade npm 6.13.1 -> 6.13.4 2019-12-18 01:17:35 +01:00
package.json ci: test basic application response of the docker build 2019-12-25 00:28:38 +01:00
README.md remove one less warning during install by having a readme placeholder 2013-02-10 03:04:08 +00:00
web.config Add IIS config file 2012-10-25 10:22:28 -07:00

Ignore this file and see the file in the base installation folder