From a84b115412f76f3c9da77bac950e3007fbe50140 Mon Sep 17 00:00:00 2001 From: Nigro Simone Date: Mon, 5 Jan 2026 09:20:47 +0100 Subject: [PATCH] fix: enhance decodeParam to check for encoded values --- lib/layer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/layer.js b/lib/layer.js index 6a4408f..1455a94 100644 --- a/lib/layer.js +++ b/lib/layer.js @@ -217,7 +217,7 @@ Layer.prototype.match = function match (path) { */ function decodeParam (val) { - if (typeof val !== 'string' || val.length === 0) { + if (typeof val !== 'string' || val.length === 0 || val.indexOf('%') === -1) { return val }