Permalink
Browse files

- changed to double quotes around file name (.NET compatibility - tha…

…nks @nealpoole)
  • Loading branch information...
koto committed Jun 30, 2011
1 parent 0739b10 commit d8ec839cefaceb7a0be5a2a201f9b40ed027b0ef
Showing with 1 addition and 1 deletion.
  1. +1 −1 crossdomain-upload/evil/upload.html
@@ -69,7 +69,7 @@ <h1>Arbitrary file upload</h1>
}
var body = "--" + boundary + "\r\n";
- body += "Content-Disposition: form-data; name='contents'; filename='" + fileName + "'\r\n";
+ body += "Content-Disposition: form-data; name=\"contents\"; filename=\"" + fileName + "\"\r\n";
body += "Content-Type: application/octet-stream\r\n\r\n";
body += fileData + "\r\n";
body += "--" + boundary + "--";

0 comments on commit d8ec839

Please sign in to comment.