Skip to content

Commit

Permalink
Percent decode
Browse files Browse the repository at this point in the history
  • Loading branch information
slowcheetah committed Aug 13, 2024
1 parent ba501bf commit b3e76ef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/core-js/modules/web.url-search-params.constructor.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,10 @@ var decode = function (input) {

var nextByte = parseHexOctet(input, i + 1);

if (nextByte > 191 || nextByte < 128) { // incorrect next byte
break;
}

if (isNaN(nextByte)) {
i += 3;
break;
Expand Down

0 comments on commit b3e76ef

Please sign in to comment.