am 87d5004d: am e9e1cdd5: 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.

Merge commit '87d5004d3b62441a55b2aba870e4276af6c771eb' into eclair-mr2

* commit '87d5004d3b62441a55b2aba870e4276af6c771eb':
  decode the search string before putting it into the search control.
This commit is contained in:
Scott Main
2009-10-04 15:27:00 -07:00
committed by Android Git Automerger

View File

@@ -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)