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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user