Merge branch 'soon'

pull/1/head
yflory 2019-02-21 10:54:42 +01:00
commit 1ff96a870e
1 changed files with 1 additions and 1 deletions

View File

@ -517,7 +517,7 @@ Version 1
// pads and files should have a base64 (or hex) key
if (parsed.hashData.type === 'pad' || parsed.hashData.type === 'file') {
if (!parsed.hashData.key) { return; }
if (!/^[a-zA-Z0-9+-/]+$/.test(parsed.hashData.key)) { return; }
if (!/^[a-zA-Z0-9+-/=]+$/.test(parsed.hashData.key)) { return; }
}
}
return true;