handle multipart fields with colon inside [2.4.x]

if a form is submitted as multipart/form-data and a field in this form has a colon in its name
e.g. "message_id:signature", the original parameter name would be lost and translated to "message_idsignature"

adjusted pull request for changes made from 2.3.x -> 2.4.x
Original pull request: https://github.com/playframework/playframework/pull/3404
Pull Request on 2.3.x: https://github.com/playframework/playframework/pull/3546
Yes, of course, you're right... I somehow missed the trim. Sorry about that.

On Tue, Oct 28, 2014 at 11:40 PM, James Roper <notifications@github.com>
wrote:

> In
> framework/src/play-integration-test/src/test/scala/play/it/http/parsing/MultipartFormDataParserSpec.scala:
>
> > @@ -59,7 +59,7 @@ object MultipartFormDataParserSpec extends PlaySpecification {
> >    }
> >
> >    "The multipart/form-data parser" should {
> > -    "parse some content" in new WithApplication() {
> > +    "parse some content and work if there's no crlf at the start" in new WithApplication() {
>
> This test is different to the other one - the other one trims the body
> before sending it. The other test actually tests a difference between how
> IE sends multipart/form-data (I can't remember exactly what), but without
> that test we could easily end up with a regression.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/playframework/playframework/pull/3547/files#r19509294>
> .
>



-- 
Dominik Dorn
http://dominikdorn.com | http://twitter.com/domdorn
XING: https://www.xing.com/profile/Dominik_Dorn
LINKEDIN: http://at.linkedin.com/pub/dominik-dorn/66/b42/bb1/