Skip to content

Commit

Permalink
Updating Gravatar lib and removing bug workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
Derek Jones committed Feb 26, 2016
1 parent df06660 commit 834a022
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 16 deletions.
10 changes: 5 additions & 5 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions gravatar/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ Example: all monsters, all the time:

## Change Log

### 1.0.2

- Updated [forxer/Gravatar lib](https://github.com/forxer/gravatar) to v1.3.1, allowing removal of a workaround for a bug in said library.

### 1.0.1

- adjusting build dependencies, no functional changes
Expand Down
2 changes: 1 addition & 1 deletion gravatar/addon.setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
'author_url' => 'https://ellislab.com/',
'name' => 'Gravatar',
'description' => 'Outputs Globally Recognized Avatars (Gravatars) for a given email address',
'version' => '1.0.1',
'version' => '1.0.2',
'namespace' => 'User\Addons\Gravatar',
'settings_exist' => FALSE
);
10 changes: 0 additions & 10 deletions gravatar/pi.gravatar.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,16 +109,6 @@ public function __construct($str = '')
$this->force_default
);

// bug in current forxer\Gravatar
// Full URLs given as the default image are double encoded
if (strncasecmp($this->default, 'http', 4) === 0)
{
$url = parse_url($gravatar);
parse_str(html_entity_decode($url['query']), $default_url);
$default_url['d'] = rawurldecode($default_url['d']);
$gravatar = $url['scheme'].'://'.$url['host'].$url['path'].'?'.http_build_query($default_url);
}

$this->return_data = $gravatar;
}

Expand Down

0 comments on commit 834a022

Please sign in to comment.