diff options
author | Kris Maglione <maglione.k@gmail.com> | 2011-01-25 16:17:25 -0500 |
---|---|---|
committer | Kris Maglione <maglione.k@gmail.com> | 2011-01-25 16:17:25 -0500 |
commit | ec42ad5a5afeaae016065fc9146d454be4948e7b (patch) | |
tree | 6adb3c6c00207309ca2368066cc268899c1bf558 /common | |
parent | 05a2859384c6cf383c107b7caf7419eb4f3e5366 (diff) | |
download | pentadactyl-ec42ad5a5afeaae016065fc9146d454be4948e7b.tar.gz |
Fix bug in parseForm.
Diffstat (limited to 'common')
-rw-r--r-- | common/content/bookmarks.js | 2 | ||||
-rw-r--r-- | common/modules/util.jsm | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/common/content/bookmarks.js b/common/content/bookmarks.js index 7fe61ab0..8b741d9a 100644 --- a/common/content/bookmarks.js +++ b/common/content/bookmarks.js @@ -105,7 +105,7 @@ var Bookmarks = Module("bookmarks", { */ addSearchKeyword: function (elem) { if (elem instanceof HTMLFormElement || elem.form) - var [url, post,, charset] = util.parseForm(elem); + var [url, post, charset] = util.parseForm(elem); else var [url, post, charset] = [elem.href || elem.src, null, elem.ownerDocument.characterSet]; diff --git a/common/modules/util.jsm b/common/modules/util.jsm index 7ee979c8..5e76467e 100644 --- a/common/modules/util.jsm +++ b/common/modules/util.jsm @@ -1179,7 +1179,7 @@ var Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]), } } if (post) - return [url, elems.join('&'), elems, charset]; + return [url, elems.join('&'), charset, elems]; return [url + "?" + elems.join('&'), null, charset]; }, |