Skip to content

Commit

Permalink
Merge 6d66ebe into 684b6ea
Browse files Browse the repository at this point in the history
  • Loading branch information
MrEcl committed Apr 27, 2021
2 parents 684b6ea + 6d66ebe commit 50258e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -795,9 +795,9 @@ function uploadPath(baseDir, filename) {
}

function parseFilename(headerValue) {
var m = headerValue.match(/\bfilename="(.*?)"($|; )/i);
var m = headerValue.match(/\bfilename="((.|\s)*?)"($|; )/i);
if (!m) {
m = headerValue.match(/\bfilename\*=utf-8''(.*?)($|; )/i)
m = headerValue.match(/\bfilename\*=utf-8''((.|\s)*?)($|; )/i)
if (m) {
m[1] = decodeURI(m[1]);
} else {
Expand Down

0 comments on commit 50258e2

Please sign in to comment.