Skip to content

Commit

Permalink
A part with an empty filename in multipart formdata should still be h…
Browse files Browse the repository at this point in the history
…andled as a file
  • Loading branch information
jbrichau committed Jan 13, 2024
1 parent 2734bfd commit cb9f147
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
seasideVersion
"Answer the Seaside version"

^ (GRVersion major: 3 minor: 5 revision: 4)
^ (GRVersion major: 3 minor: 6 revision: 0)
yourself
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
private
convertMultipartEntity: anEntity with: aMultiValueDictionary

anEntity partsDo: [ :part |
| value |
value := part hasEntity
ifFalse: [ '' ]
ifTrue: [
part fileName isEmptyOrNil
ifTrue: [ self codec url decode: part fieldValueString ]
ifFalse: [ self convertMultipartFileField: part ] ].
aMultiValueDictionary
at: part fieldName
add: value ]
part fileName
ifNil: [ self codec url decode: part fieldValueString ]
ifNotNil: [ self convertMultipartFileField: part ] ]
ifFalse: [ '' ].
aMultiValueDictionary at: part fieldName add: value ]

0 comments on commit cb9f147

Please sign in to comment.