mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-26 13:13:08 +02:00
Use base64url digest
This commit is contained in:
parent
e9428a5a05
commit
327694d4cf
1 changed files with 1 additions and 1 deletions
|
@ -472,7 +472,7 @@ export class ImportNotesProcessorService {
|
|||
const slashdex = file.url.lastIndexOf('/');
|
||||
const filename = file.url.substring(slashdex + 1);
|
||||
const hash = crypto.createHash('md5');
|
||||
const urlHash = hash.update(file.url).digest('hex');
|
||||
const urlHash = hash.update(file.url).digest('base64url');
|
||||
const name = `${urlHash}-${filename}`;
|
||||
const [filePath, cleanup] = await createTemp();
|
||||
|
||||
|
|
Loading…
Reference in a new issue