From f597e1bf13b832820d9157e85d2cbd706c08b44b Mon Sep 17 00:00:00 2001 From: Anthony Gordon Date: Sun, 10 Feb 2019 16:26:06 -0500 Subject: [PATCH] URIDecode Query String Before Validating Query I tested this on on firefox and postman and it works. Applications such as postman encodeURI before sending it out. This will decode it before evaluating it. I would ask to implement this or create a option to atleast set this if needed. In anycase a simple decode won't hurt the tool. Only make it before at the least. --- src/parsing/parser.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/parsing/parser.js b/src/parsing/parser.js index c8e49e5..0d9c659 100644 --- a/src/parsing/parser.js +++ b/src/parsing/parser.js @@ -561,6 +561,7 @@ function peg$parse(input, options) { peg$silentFails++; s0 = peg$currPos; + input = decodeURI(input); if (input.substr(peg$currPos, 2) === peg$c11) { s1 = peg$c11; peg$currPos += 2;