1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-28 18:12:27 +01:00
--HG--
extra : rebase_source : 1a59c78e7745a65a878c7b031f17d75c532b70ea
This commit is contained in:
Kris Maglione
2011-12-27 03:07:04 -05:00
parent 6ee5397771
commit ea87ab831d
2 changed files with 4 additions and 3 deletions

View File

@@ -347,9 +347,10 @@ var Bookmarks = Module("bookmarks", {
if (charset)
var encodedParam = escape(window.convertFromUnicode(charset, param));
else
encodedParam = bookmarkcache.keywords[keyword].encodeURIComponent(param);
encodedParam = bookmarkcache.keywords[keyword.toLowerCase()].encodeURIComponent(param);
url = url.replace(/%s/g, encodedParam).replace(/%S/g, param);
url = url.replace(/%s/g, function () encodedParam)
.replace(/%S/g, function () param);
if (/%s/i.test(data))
postData = window.getPostDataStream(data, param, encodedParam, "application/x-www-form-urlencoded");
}

View File

@@ -280,7 +280,7 @@ var Editor = Module("editor", XPCOM(Ci.nsIEditActionListener, ModuleBase), {
}
},
findChar: function findNumber(key, count, backward, offset) {
findChar: function findChar(key, count, backward, offset) {
count = count || 1; // XXX ?
offset = (offset || 0) - !!backward;