From ee55c50a1a636bb59b3518f34edfbacc90d8c4cb Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Tue, 23 Jan 2024 19:47:33 +0100 Subject: [PATCH] fix: URL query validation --- src/api/v3/proxy_get.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/v3/proxy_get.js b/src/api/v3/proxy_get.js index 5addc17..69e6e1b 100644 --- a/src/api/v3/proxy_get.js +++ b/src/api/v3/proxy_get.js @@ -110,7 +110,7 @@ router.get('/aspe', query('aspeUri').isString(), (req, res) => { }) // OpenPGP route -router.get('/openpgp', query('url').isFQDN(), query('protocol').isString(), (req, res) => { +router.get('/openpgp', query('url').isURL(), query('protocol').isString(), (req, res) => { const errors = validationResult(req) if (!errors.isEmpty()) { return res.status(400).json({ errors: errors.array() })