Skip to content

Commit ef4f54d

Browse files
committed
encode url parameters when searching contacts
Fixing an issue when searching for contacts that contain a plus sign in their email address (for example: [email protected] won't work, while [email protected] will).
1 parent dbe9d74 commit ef4f54d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

icontact/client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ def search_contacts(self, params=None, account_id=None, client_folder_id=None, *
287287
for k in params:
288288
if len(p) > 0:
289289
p += "&"
290-
p += "%s=%s" % (k,params[k])
290+
p += "%s=%s" % (k,urllib.quote(params[k]))
291291

292292
result = self._do_request('a/%s/c/%s/contacts/?%s' % (account_id, client_folder_id, p), type='json')
293293
self.log.debug("search_contacts(%s)=%s" % (p, result))

0 commit comments

Comments
 (0)