blueskeys / in-spirit

Automatically exported from code.google.com/p/in-spirit
0 stars 0 forks source link

request headers and 2176 security issue #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
So the 2176 security issue rears its ugly head when submitting multi-part 
data across triggered by an ExternalInterface call.

I read elsewhere about the problem and figured it wasn't able to be fixed. 
Turns out it can. 

I'm not sure why the "cotentType" property was set and not the 
"requestHeaders" but if within the doSend() method you change:

urlRequest.contentType = 'multipart/form-data; boundary=' + getBoundary();

TO:

urlRequest.requestHeaders.push(new URLRequestHeader("Content-Type", 
'multipart/form-data; boundary=' + getBoundary()));

Everything seems to work then even with ExternalInterface. Again I really 
don't know why it was the other way, but this class is really convenient 
and great. It makes adding data a very simple both strings and file data. 
So I really love this class. Hope this helps.

Original issue reported on code.google.com by Tom.Maia...@gmail.com on 24 Feb 2010 at 11:49

GoogleCodeExporter commented 9 years ago

This one is already fixed and commited couple of days later.
please update for the latest version form Repository

Thanx.

Original comment by zatepya...@gmail.com on 25 Feb 2010 at 2:16