Skip to content

Commit

Permalink
fixup! off-by-one
Browse files Browse the repository at this point in the history
  • Loading branch information
KhafraDev committed Mar 3, 2024
1 parent 125a9e2 commit fe9e5ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/web/fetch/formdata-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ function parseMultipartFormDataHeaders (input, position) {
if (input.indexOf(filenameBuffer, position.position) === position.position) {
// 1. Advance position so it points at the byte after the next 0x22 (") byte
// (the one in the sequence of bytes matched above).
position.position += 13
position.position += 12

// 2. Set filename to the result of parsing a multipart/form-data name given
// input and position, if the result is not failure. Otherwise, return failure.
Expand Down

0 comments on commit fe9e5ed

Please sign in to comment.