diff options
| author | Niklas Baumstark | 2012-01-23 12:57:51 +0100 |
|---|---|---|
| committer | Niklas Baumstark | 2012-04-10 23:54:37 +0200 |
| commit | aa5b39f3e211169d43ec7c3ce5bdd39b49a54f44 (patch) | |
| tree | 162f2d02aaf87c2dfa943aa2a97d98a03576312a /lib/utils.js | |
| parent | 9bab5a39e49c348c10941882395e68c0351a8a39 (diff) | |
| download | vimium-aa5b39f3e211169d43ec7c3ce5bdd39b49a54f44.tar.bz2 | |
fix search URL building
Diffstat (limited to 'lib/utils.js')
| -rw-r--r-- | lib/utils.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/utils.js b/lib/utils.js index 2b580786..a0ca9715 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -100,7 +100,8 @@ var utils = { * Creates a search URL from the given :query. */ createSearchUrl: function(query) { - return "http://www.google.com/search?q=" + query; + // we need to escape explictely to encode characters like "+" correctly + return "http://www.google.com/search?q=" + encodeURIComponent(query); }, /** |
