From aa5b39f3e211169d43ec7c3ce5bdd39b49a54f44 Mon Sep 17 00:00:00 2001 From: Niklas Baumstark Date: Mon, 23 Jan 2012 12:57:51 +0100 Subject: fix search URL building --- lib/utils.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') 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); }, /** -- cgit v1.2.3