HackMD/lib
Sheogorath 735b806d5d
Add check for noteId length
As we know the length of an UUID we can check if the base64 string
of the provided UUID is long enough for a legacy base64 encoded nodeId
and stop processing it in legacy mode, if it's not the case.

This should make the ugly warning way less common.

Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-04-10 16:10:34 +02:00
..
config Merge pull request #791 from SISheogorath/fix/extendedCSPPolicies 2018-04-05 01:13:15 +02:00
migrations Add missing migration for permissions 2018-03-06 16:31:41 +01:00
models Add check for noteId length 2018-04-10 16:10:34 +02:00
ot Change config to camel case with backwards compatibility 2018-03-25 19:08:14 +02:00
web Change config to camel case with backwards compatibility 2018-03-25 19:08:14 +02:00
workers refactor: Remove require extension filename 2017-05-08 19:29:06 +08:00
csp.js Fix CSP for disqus and Google Analytics 2018-03-30 16:33:52 +02:00
history.js Improve history migration performance 2018-03-10 16:51:00 +08:00
letter-avatars.js Use strict mode in all backend files 2017-03-14 13:02:43 +08:00
logger.js refactor(logger): Refactor logger.js 2017-05-08 19:24:37 +08:00
realtime.js Change config to camel case with backwards compatibility 2018-03-25 19:08:14 +02:00
response.js Fix CSP for disqus and Google Analytics 2018-03-30 16:33:52 +02:00
utils.js switch to __dirname 2017-06-02 11:34:35 +01:00