aboutsummaryrefslogtreecommitdiffstats
path: root/lib/utils.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/utils.js')
-rw-r--r--lib/utils.js3
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);
},
/**