Allow upload of files with a .json postfix.
This commit is contained in:
parent
589e9254e7
commit
18c8a83173
1 changed files with 1 additions and 1 deletions
|
@ -402,7 +402,7 @@ func formPartToPayload(field, data string, p *parsedPayload) {
|
|||
// * no silly characters (/, ctrl chars, etc)
|
||||
//
|
||||
// * nothing starting with '.'
|
||||
var filenameRegexp = regexp.MustCompile(`^[a-zA-Z0-9_-]+\.(jpg|png|txt)$`)
|
||||
var filenameRegexp = regexp.MustCompile(`^[a-zA-Z0-9_-]+\.(jpg|png|txt|json)$`)
|
||||
|
||||
// saveFormPart saves a file upload to the report directory.
|
||||
//
|
||||
|
|
Reference in a new issue