From ee951d130efa755ee7c28fc07f68b1a558c0e802 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Mon, 31 Jan 2011 17:14:38 -0500 Subject: [PATCH] Remove stupid parseForm eccentricity copied from Firefox. --- common/modules/util.jsm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/modules/util.jsm b/common/modules/util.jsm index 02d4b1dd..73b53e19 100644 --- a/common/modules/util.jsm +++ b/common/modules/util.jsm @@ -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; }