mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Bug 520361 - escapeNameValuePair() shouldn't be global. r=gavin
This commit is contained in:
parent
4c5bea8fa8
commit
9e56adade4
@ -5749,14 +5749,6 @@ function BrowserOpenAddonsMgr(aPane)
|
||||
window.openDialog(EMURL, "", EMFEATURES);
|
||||
}
|
||||
|
||||
function escapeNameValuePair(aName, aValue, aIsFormUrlEncoded)
|
||||
{
|
||||
if (aIsFormUrlEncoded)
|
||||
return escape(aName + "=" + aValue);
|
||||
else
|
||||
return escape(aName) + "=" + escape(aValue);
|
||||
}
|
||||
|
||||
function AddKeywordForSearchField()
|
||||
{
|
||||
var node = document.popupNode;
|
||||
@ -5784,6 +5776,13 @@ function AddKeywordForSearchField()
|
||||
var el, type;
|
||||
var formData = [];
|
||||
|
||||
function escapeNameValuePair(aName, aValue, aIsFormUrlEncoded) {
|
||||
if (aIsFormUrlEncoded)
|
||||
return escape(aName + "=" + aValue);
|
||||
else
|
||||
return escape(aName) + "=" + escape(aValue);
|
||||
}
|
||||
|
||||
for (var i=0; i < node.form.elements.length; i++) {
|
||||
el = node.form.elements[i];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user