summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Main <smain@google.com>2009-10-01 14:59:24 -0700
committerScott Main <smain@google.com>2009-10-01 15:20:35 -0700
commite9e1cdd556b40a04637b7de3d839b2a596df47e3 (patch)
tree982fbbd5466da47d233b4ce7473aa72588220ed4
parentac18e4f238650aa4bf8b6c7540d928b0249cfd99 (diff)
downloadbase-e9e1cdd556b40a04637b7de3d839b2a596df47e3.tar.gz
decode the search string before putting it into the search control.
this fixes a safari-only bug in which encoded chars were inserted into the search string. http://b/issue?id=2031559 Change-Id: Ie60902bafcbb327d488b921f8d3925aaf9ff0566
-rw-r--r--docs/html/search.jd4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/html/search.jd b/docs/html/search.jd
index 838af03d604d..8032b2219167 100644
--- a/docs/html/search.jd
+++ b/docs/html/search.jd
@@ -94,9 +94,9 @@ page.title=Search Results
// when an event on the browser history occurs (back, forward, load) perform a search
$(window).history(function(e, hash) {
- var query = getQuery(hash);
+ var query = decodeURI(getQuery(hash));
searchControl.execute(query);
- $("#searchTitle").html("search results for <em>" + decodeURI(query) + "</em>");
+ $("#searchTitle").html("search results for <em>" + query + "</em>");
});
// forcefully regain key-up event control (previously jacked by search api)