Skip to content
Browse files

Closes #690 Encoding hashtags for the Twitter Search GET request. Wit…

…hout it, UTF-8 hashtags inconsistently work.
  • Loading branch information...
1 parent 535469d commit 57117678a3d3329074d0dc85b58e3a39b1a49267 @brianherbert brianherbert committed Jul 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 application/controllers/scheduler/s_twitter.php
View
2 application/controllers/scheduler/s_twitter.php
@@ -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);

0 comments on commit 5711767

Please sign in to comment.
Something went wrong with that request. Please try again.