danielpronych / python-twitter

Automatically exported from code.google.com/p/python-twitter
Apache License 2.0
0 stars 0 forks source link

GetSearch should not quote the requested query #150

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I found a bug in the GetSearch method. The 'q' parameter is quoted, which 
should not be done there. The parameters are quoted again later in the process.

E.g.:

GetSearch("#haiku") does not give the correct results. 

If you remove the quoting:

parameters['q'] = term

then it works fine for me.

Original issue reported on code.google.com by huubhuub...@gmail.com on 21 Jul 2010 at 2:19

GoogleCodeExporter commented 8 years ago
I've attached a patch.  extra_params will get urlencoded with urllib.urlencode 
in _EncodeParameters.  quote_plus on the term will cause "#haiku" to be 
incorrectly quoted as %2525haiku instead of just %25haiku.

Original comment by blhob...@gmail.com on 10 Sep 2010 at 3:31

Attachments:

GoogleCodeExporter commented 8 years ago
fixed when revision 63651288b8 was committed

Original comment by bear42 on 16 Oct 2010 at 7:43