1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-06 06:44:12 +01:00

Remove stupid parseForm eccentricity copied from Firefox.

This commit is contained in:
Kris Maglione
2011-01-31 17:14:38 -05:00
parent 63fe67258d
commit ee951d130e

View File

@@ -1162,8 +1162,8 @@ var Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]),
parseForm: function parseForm(field) {
function encode(name, value, param) {
param = param ? "%s" : "";
if (post) // Seems wrong.
return encodeComponent(name + "=" + value + param);
if (post)
return name + "=" + encodeComponent(value + param);
return encodeComponent(name) + "=" + encodeComponent(value) + param;
}