From 0c5d4bbf5e5206d53470ea86a664fa2b703fb611 Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 31 Mar 2025 10:58:43 +0200 Subject: [PATCH] Fix checkup issue with block placeholder --- lib/http-worker.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/http-worker.js b/lib/http-worker.js index 1aae2ee44..7a4a1778d 100644 --- a/lib/http-worker.js +++ b/lib/http-worker.js @@ -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",