From a32d7e88834fb9bac6161fb0ff5b97878d184024 Mon Sep 17 00:00:00 2001 From: Embbnux Ji Date: Thu, 4 Jul 2024 17:02:09 +0800 Subject: [PATCH] misc: filter code --- src/server/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/server/index.js b/src/server/index.js index 6f36318..085b9ea 100644 --- a/src/server/index.js +++ b/src/server/index.js @@ -19,6 +19,10 @@ app.use(morgan(function (tokens, req, res) { url = url.replace(webhookId, '[MASK]'); } } + const code = req.query.code; + if (code) { + url = url.replace(code, '[MASK]'); + } if (url.indexOf('/get-form-data') === 0) { const formIds = req.query.formIds; if (formIds) {