Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e9e1cdd5 authored by Scott Main's avatar Scott Main
Browse files

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
parent ac18e4f2
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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)