Skip to content

Commit

Permalink
Closes #690 Encoding hashtags for the Twitter Search GET request. Wit…
Browse files Browse the repository at this point in the history
…hout it, UTF-8 hashtags inconsistently work.
  • Loading branch information
brianherbert committed Jul 11, 2012
1 parent 535469d commit 5711767
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/controllers/scheduler/s_twitter.php
Expand Up @@ -60,7 +60,7 @@ public function index()
$have_results = TRUE; //just starting us off as true, although there may be no results
while($have_results == TRUE AND $page <= 2)
{ //This loop is for pagination of rss results
$hashtag = trim(str_replace('#','',$hashtag));
$hashtag = rawurlencode(trim(str_replace('#','',$hashtag)));
$twitter_url = 'http://search.twitter.com/search.json?q=%23'.$hashtag.'&rpp=100&page='.$page; //.$last_tweet_id;
$curl_handle = curl_init();
curl_setopt($curl_handle,CURLOPT_URL,$twitter_url);
Expand Down

0 comments on commit 5711767

Please sign in to comment.