mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-17 11:22:35 +02:00
Remove stupid parseForm eccentricity copied from Firefox.
This commit is contained in:
1 parent
63fe67258d
commit
ee951d130e
1 file changed
+2
-2
@@ -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