From f4fdb1e75627f793cc04940a6dc732f4fdbbbcc7 Mon Sep 17 00:00:00 2001 From: asciimoo Date: Fri, 25 Oct 2013 11:20:46 +0200 Subject: [PATCH] [fix] url encoding --- searx/engines/google_images.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searx/engines/google_images.py b/searx/engines/google_images.py index 9b822f544..d828a9c4b 100755 --- a/searx/engines/google_images.py +++ b/searx/engines/google_images.py @@ -9,7 +9,7 @@ url = 'https://ajax.googleapis.com/' search_url = url + 'ajax/services/search/images?v=1.0&start=0&rsz=large&safe=off&filter=off&{query}' def request(query, params): - params['url'] = search_url + urlencode({'q': query}) + params['url'] = search_url.format(query=urlencode({'q': query})) return params def response(resp):