зеркало из https://github.com/mozilla/pjs.git
Bug 427155: Searching add-ons for /find bar/ generates an error. r=robstrong, r=laura
This commit is contained in:
Родитель
164063ed50
Коммит
23999b15f9
|
@ -51,7 +51,7 @@ const PREF_GETADDONS_GETSEARCHRESULTS = "extensions.getAddons.search.url";
|
|||
|
||||
const XMLURI_PARSE_ERROR = "http://www.mozilla.org/newlayout/xml/parsererror.xml";
|
||||
|
||||
const API_VERSION = "1.1";
|
||||
const API_VERSION = "1.2";
|
||||
|
||||
function AddonSearchResult() {
|
||||
}
|
||||
|
@ -172,7 +172,8 @@ AddonRepository.prototype = {
|
|||
|
||||
var uri = prefs.getCharPref(PREF_GETADDONS_GETSEARCHRESULTS);
|
||||
uri = uri.replace(/%API_VERSION%/g, API_VERSION);
|
||||
uri = uri.replace(/%TERMS%/g, encodeURIComponent(aSearchTerms));
|
||||
// We double encode due to bug 427155
|
||||
uri = uri.replace(/%TERMS%/g, encodeURIComponent(encodeURIComponent(aSearchTerms)));
|
||||
uri = urlf.formatURL(uri);
|
||||
this._loadList(uri);
|
||||
},
|
||||
|
|
Загрузка…
Ссылка в новой задаче