summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources
diff options
context:
space:
mode:
authorglen@chromium.org <glen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-16 15:41:16 +0000
committerglen@chromium.org <glen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-16 15:41:16 +0000
commitafe0dc2ef547e872cbe8f13f8b68d5f911da5483 (patch)
tree959e8b33159eef25f0e62b71fc463ea6098f2d3d /chrome/browser/resources
parentdd516b77b5ef0f535a90ea307a8d8cff2ee7d6ca (diff)
downloadchromium_src-afe0dc2ef547e872cbe8f13f8b68d5f911da5483.zip
chromium_src-afe0dc2ef547e872cbe8f13f8b68d5f911da5483.tar.gz
chromium_src-afe0dc2ef547e872cbe8f13f8b68d5f911da5483.tar.bz2
Fix escaping issue with non-ASCII history search input.
Issue was that EscapeQueryParamValue is equivalent to encodeURIComponent(), not escape() BUG=8346 Review URL: http://codereview.chromium.org/42215 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11731 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/resources')
-rw-r--r--chrome/browser/resources/history.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/resources/history.html b/chrome/browser/resources/history.html
index d48f4c8c..c952fe8 100644
--- a/chrome/browser/resources/history.html
+++ b/chrome/browser/resources/history.html
@@ -643,7 +643,7 @@ PageState.prototype.getHashData = function() {
for (var i = 0; i < hashSplit.length; i++) {
var pair = hashSplit[i].split("=");
if (pair.length > 1) {
- result[pair[0]] = unescape(pair[1]);
+ result[pair[0]] = decodeURIComponent(pair[1]);
}
}
@@ -676,7 +676,7 @@ PageState.prototype.setUIState = function(term, page) {
PageState.getHashString = function(term, page) {
var newHash = [];
if (term) {
- newHash.push("q=" + escape(term));
+ newHash.push("q=" + encodeURIComponent(term));
}
if (page) {
newHash.push("p=" + page);