зеркало из https://github.com/mozilla/pjs.git
Bug 236913 Need to correctly unescape search strings for the search sidebar (indirect fallout from bug 44272) r=timeless sr=alecf
This commit is contained in:
Родитель
fea06675c2
Коммит
61f3c42f9f
|
@ -139,7 +139,7 @@ function rememberSearchText(target)
|
|||
}
|
||||
}
|
||||
|
||||
textNode.value = decodeURI(target);
|
||||
textNode.value = decodeURIComponent(target);
|
||||
doEnabling();
|
||||
}
|
||||
}
|
||||
|
@ -919,7 +919,7 @@ function saveSearch()
|
|||
if (target) {
|
||||
// convert plusses (+) back to spaces
|
||||
target = target.replace(/\+/g, " ");
|
||||
lastSearchText = decodeURI(target);
|
||||
lastSearchText = decodeURIComponent(target);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче