hedgedoc/lib
Sheogorath 0621d7a72d
Fix usage of new URL API
Due to the deprecation of the old `url`-API provided by NodeJS we
replaced `url.resolve` with `url.URL.resolve`, which doesn't exist.

This patch fixes the local filesystem upload of CodiMD by using the new
API correctly. Creating an URL object and using its href.

Some more background:
https://nodejs.org/api/url.html#url_url_href
https://nodejs.org/api/url.html#url_url_resolve_from_to

Fixes https://github.com/hackmdio/codimd/issues/1102

Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-12-18 14:52:18 +01:00
..
config Warn on missing serverURL 2018-11-28 14:38:49 +01:00
migrations Update error message text checks 2018-11-16 23:53:50 +01:00
models Switch scrypt library to a successor 2018-11-21 01:33:34 +01:00
ot Fix logging in ot module 2018-11-13 23:30:13 +01:00
web Fix usage of new URL API 2018-12-18 14:52:18 +01:00
workers
csp.js
history.js
letter-avatars.js
logger.js Fix streaming for winston 2018-11-16 11:49:39 +01:00
realtime.js switching to eslint for code checking 2018-11-14 23:15:36 +01:00
response.js Disallow creation of robots.txt in freeurl 2018-11-17 13:23:03 +01:00
utils.js