Skip to content

Commit

Permalink
Fixing SSL issues with facebook connect. Tagging & bagging 0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
thenbrent committed Aug 31, 2011
1 parent e4da9fb commit c6e4082
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
8 changes: 7 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: thenbrent
Tags: facebook, wordpress.com, twitter, google, yahoo, social, login, register
Requires at least: 3.0
Tested up to: 3.2.1
Stable tag: 0.8
Stable tag: 0.9

Allow your visitors to comment, login and register with their Twitter, Facebook, Google, Yahoo or WordPress.com account.

Expand Down Expand Up @@ -96,6 +96,9 @@ If you don't have White Label CMS installed, please double check your settings t

== Changelog ==

= 0.9 =
* Setting CURLOPT_SSL_VERIFYPEER to false

= 0.8 =
* Moving comments icons to top of comment form (using `comment_form_top` hook instead of `comment_form` hook)
* No longer relying on `file_get_contents()` function (using custom `sc_curl_get_contents()` function)
Expand Down Expand Up @@ -133,6 +136,9 @@ If you don't have White Label CMS installed, please double check your settings t

== Upgrade Notice ==

= 0.9 =
* Upgrade to fix Facebook connect SSL bug effecting some servers.

= 0.8 =
* Upgrade to fix bugs affecting Facebook connect on certain servers.

Expand Down
2 changes: 1 addition & 1 deletion social-connect.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: Social Connect
Plugin URI: http://wordpress.org/extend/plugins/social-connect/
Description: Allow your visitors to comment, login and register with their Twitter, Facebook, Google, Yahoo or WordPress.com account.
Version: 0.8
Version: 0.9
Author: Brent Shepherd
Author URI: http://wordpress.org/extend/plugins/social-connect/
License: GPL2
Expand Down
12 changes: 8 additions & 4 deletions utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,13 @@ function social_connect_verify_signature( $data, $signature, $redirect_to ) {

function sc_curl_get_contents( $url ) {
$curl = curl_init();
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_URL, $url);
$html = curl_exec($curl);
curl_close($curl);
curl_setopt( $curl, CURLOPT_RETURNTRANSFER, 1 );
curl_setopt( $curl, CURLOPT_URL, $url );
curl_setopt( $curl, CURLOPT_SSL_VERIFYPEER, false );

$html = curl_exec( $curl );

curl_close( $curl );

return $html;
}

0 comments on commit c6e4082

Please sign in to comment.