mirror of
https://github.com/nodejs/node.git
synced 2026-10-28 18:25:13 +08:00
decodeFormComponent() already finds the first percent character, but hasPercentHex() scans the plain prefix again. Start the check at the known position to avoid repeating that work. Replacing plus signs with spaces preserves character positions, so escape validation and decoding behavior remain unchanged. Signed-off-by: Roberto Bianchi <roberto.bianchi@spendesk.com> PR-URL: https://github.com/nodejs/node/pull/66696 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day>