mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-12 19:49:59 +05:00
Fix checkup issue with block placeholder
This commit is contained in:
parent
77b46f62a2
commit
0c5d4bbf5e
@ -359,6 +359,9 @@ app.use('/block/', function (req, res, next) {
|
||||
// block access control only applies to files
|
||||
// identified by base64-encoded public keys
|
||||
// skip everything else, ie. /block/placeholder.txt
|
||||
if (/placeholder\.txt(\?.+)?/.test(parsed.base)) {
|
||||
return void next();
|
||||
}
|
||||
if (typeof(name) !== 'string' || name.length !== 44) {
|
||||
return void res.status(404).json({
|
||||
error: "INVALID_ID",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user