Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
KhafraDev committed Mar 3, 2024
1 parent fe9e5ed commit a4c825c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/web/fetch/formdata-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -371,9 +371,9 @@ function parseMultipartFormDataName (input, position) {
// - `%0D`: 0x0D (CR)
// - `%22`: 0x22 (")
name = new TextDecoder().decode(name)
.replace(/%0A/i, '\n')
.replace(/%0D/i, '\r')
.replace(/%22/, '"')
.replace(/%0A/ig, '\n')
.replace(/%0D/ig, '\r')
.replace(/%22/g, '"')

// 5. Return the UTF-8 decoding without BOM of name.
return name
Expand Down

0 comments on commit a4c825c

Please sign in to comment.