diff options
| author | Stephen Blott | 2014-12-16 15:06:12 +0000 | 
|---|---|---|
| committer | Stephen Blott | 2014-12-16 15:06:12 +0000 | 
| commit | b64ee6e26fedfd891b34d18eb84187da50163767 (patch) | |
| tree | 575c61102d3e3cfbf066478af11cd2a774e12a46 | |
| parent | 23ce72b0e845d2c4a1469f629cd1abd70dce6652 (diff) | |
| download | vimium-b64ee6e26fedfd891b34d18eb84187da50163767.tar.bz2 | |
URIEncode search engine queries.
| -rw-r--r-- | background_scripts/completion.coffee | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/background_scripts/completion.coffee b/background_scripts/completion.coffee index dc5519d5..9d5f8780 100644 --- a/background_scripts/completion.coffee +++ b/background_scripts/completion.coffee @@ -327,7 +327,7 @@ class SearchEngineCompleter      searchEngineMatch = this.getSearchEngineMatches(queryTerms[0])      suggestions = []      if searchEngineMatch -      searchEngineMatch = searchEngineMatch.replace(/%s/g, queryTerms[1..].join(" ")) +      searchEngineMatch = searchEngineMatch.replace(/%s/g, encodeURIComponent queryTerms[1..].join(" "))        suggestion = new Suggestion(queryTerms, "search", searchEngineMatch, queryTerms[0] + ": " + queryTerms[1..].join(" "), @computeRelevancy)        suggestions.push(suggestion)      onComplete(suggestions) | 
