Skip to content
Permalink
Browse files Browse the repository at this point in the history
Merge pull request #34 from Kong/fix/vulnerable-pattern
replace `is_header()` check pattern
  • Loading branch information
javierguerragiraldez committed Jul 8, 2020
2 parents ce365f6 + fadcfa7 commit d632e5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/multipart.lua
Expand Up @@ -27,7 +27,7 @@ setmetatable(MultipartData, {


local function is_header(value)
return match(value, "(%S+):%s*(%S+)")
return match(value, "%S:%s*%S")
end


Expand Down

0 comments on commit d632e5d

Please sign in to comment.