Skip to content

Commit

Permalink
- changed to double quotes around file name (.NET compatibility - tha…
Browse files Browse the repository at this point in the history
…nks @nealpoole)
  • Loading branch information
koto committed Jun 30, 2011
1 parent 0739b10 commit d8ec839
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crossdomain-upload/evil/upload.html
Expand Up @@ -69,7 +69,7 @@ <h1>Arbitrary file upload</h1>
} }


var body = "--" + boundary + "\r\n"; 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 += "Content-Type: application/octet-stream\r\n\r\n";
body += fileData + "\r\n"; body += fileData + "\r\n";
body += "--" + boundary + "--"; body += "--" + boundary + "--";
Expand Down

0 comments on commit d8ec839

Please sign in to comment.