Form plugin patch for proper handling of quotes in data option.

Form plugin patch for proper handling of quotes in data option.

Hi,

This is a fix for whoever maintains form plugin.  There is a bug when a data item contains a double quote.

jquery.form.js (2.43)
@@ -256,9 +256,13 @@ $.fn.ajaxSubmit = function(options) {

             try {
                 if (opts.extraData)
                     for (var n in opts.extraData)
-                        extraInputs.push(
-                            $('<input type="hidden" name="'+n+'" value="'+opts.extraData[n]+'" />')
-                                .appendTo(form)[0]);
+                    {
+                        var hidden = $("<input>");
+                        hidden.attr("type", "hidden");
+                        hidden.attr("name", n);
+                        hidden.attr("value", opts.extraData[n]);
+                        extraInputs.push(hidden.appendTo(form)[0]);
+                    }
 
                 // add iframe to doc and submit the form
                 $io.appendTo('body');