WordPress.org

Ready to get started?Download WordPress

Forums

BC oAuth
BC oAuth patch (1 post)

  1. enderandrew
    Member
    Posted 2 years ago #

    Your email address bounced, so I'm posting this here:

    diff -uNrib plugins-old/bc-oauth/Classes/Google.php plugins-new/bc-oauth/Classes/Google.php
    --- plugins-old/bc-oauth/Classes/Google.php 2011-07-30 00:11:35.730902100 -0500
    +++ plugins-new/bc-oauth/Classes/Google.php 2011-08-04 18:37:15.041985100 -0500
    @@ -60,7 +60,7 @@
    if (empty($_GET["oauth_token"])){
    $getAuthTokenParams = array(
    'scope' => 'http://www.google.com/m8/feeds/contacts/default/full',
    - 'xoauth_displayname' => 'bettercodes.org',
    + 'xoauth_displayname' => $_SERVER['HTTP_HOST'],
    'oauth_callback' => $this->call_back
    );

    diff -uNrib plugins-old/bc-oauth/bc_oauth_templatetags.php plugins-new/bc-oauth/bc_oauth_templatetags.php
    --- plugins-old/bc-oauth/bc_oauth_templatetags.php 2011-07-30 00:11:30.437599300 -0500
    +++ plugins-new/bc-oauth/bc_oauth_templatetags.php 2011-08-08 00:12:43.546506200 -0500
    @@ -231,7 +231,7 @@

    global $bp;

    - add_filter('attribute_escape', 'bc_oauth_remove_attribute_escape_in_bp_message', 5, 2);
    + add_filter('esc_attr', 'bc_oauth_remove_esc_attr_in_bp_message', 5, 2);

    if( isset($bp->loggedin_user->userdata->user_email) && empty($bp->loggedin_user->userdata->user_email) )
    bp_core_add_message('Your e-mail address is empty, please go to your profile page and insert one. Otherwise you cant\'t get <b>important notices and informations</b> from ' . get_bloginfo('name') . '.' , 'info');
    @@ -246,8 +246,8 @@
    * @param string $safe_text the escaped string
    * @param string $text the original string
    */
    -function bc_oauth_remove_attribute_escape_in_bp_message($safe_text, $text) {
    - remove_filter('attribute_escape', 'bc_oauth_remove_attribute_escape_in_bp_message');
    +function bc_oauth_remove_esc_attr_in_bp_message($safe_text, $text) {
    + remove_filter('esc_attr', 'bc_oauth_remove_esc_attr_in_bp_message');
    return $text;
    }

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags