johnculviner/jquery.fileDownload — pull request #1 by itsadok (2012-05-13 05:58:42+00:00)
Title: Deal with special characters in parameters

As the code is now, when building a from for a non-GET request, it simply splits the param string with & and = and takes the strings as is. This breaks when a parameter contains any "special" character for two reasons:

1. All the strings are URI-encoded, so anything non-ascii or non alphanumeric gets converted to %2C and the likes.
2. When creating the form element, no HTML escaping is done.

Problem 2 manifests after solving problem 1, when quotes in values appear literally and mangle the HTML output.

This pull request fixes both problems.