I fixed line 479 to properly URL encode the querystring (q parameter) fo... #83

Merged
Voulnet merged 1 commit from patch-2 into master 2012-04-19 15:28:21 -07:00
Voulnet commented 2012-04-13 19:34:29 -07:00 (Migrated from github.com)

...r the search functionality. According to http://dev.twitter.com/doc/get/search, the q parameter should be URL encoded, but Twython.unicode2utf8 doesn't urlencode the query.

So I enclosed it in a urllib.quote_plus function call.

examples:

urllib.quote_plus(Twython.unicode2utf8('h ^&$'))
'h+%5E%26%24'
Twython.unicode2utf8('h ^&$')
'h ^&$'

...r the search functionality. According to http://dev.twitter.com/doc/get/search, the q parameter should be URL encoded, but Twython.unicode2utf8 doesn't urlencode the query. So I enclosed it in a urllib.quote_plus function call. examples: > > > urllib.quote_plus(Twython.unicode2utf8('h ^&$')) > > > 'h+%5E%26%24' > > > Twython.unicode2utf8('h ^&$') > > > 'h ^&$'
ryanmcgrath commented 2012-04-19 15:28:18 -07:00 (Migrated from github.com)

Huh, this used to be taken care of, but could have been dropped in the switch to requests by mistake. Either way, looks alright to me, nice find! Merging...

Huh, this used to be taken care of, but could have been dropped in the switch to `requests` by mistake. Either way, looks alright to me, nice find! Merging...
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: code/twython#83
No description provided.