diff --git a/LICENSE.txt b/LICENSE.txt index d2f70d2..71f32b7 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2015 - 2020 Ivan Tcholakov +Copyright (c) 2015 - 2022 Ivan Tcholakov Copyright (c) 2011 - 2015 Ryan Marshall Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/README.md b/README.md index e294129..af0bb81 100644 --- a/README.md +++ b/README.md @@ -64,6 +64,6 @@ http://iridadesign.com/starter-public-edition-4/www/playground/gravatar-test License Information ------------------- -Copyright (c) 2015 - 2020 Ivan Tcholakov, ivantcholakov@gmail.com +Copyright (c) 2015 - 2022 Ivan Tcholakov, ivantcholakov@gmail.com Copyright (c) 2011 - 2015 Ryan Marshall, http://irealms.co.uk License: The MIT License (MIT), http://opensource.org/licenses/MIT diff --git a/libraries/Gravatar.php b/libraries/Gravatar.php index 28adc92..8d55e19 100644 --- a/libraries/Gravatar.php +++ b/libraries/Gravatar.php @@ -3,12 +3,12 @@ /** * Gravatar Library for CodeIgniter * - * @author Ivan Tcholakov , 2015 - 2020 + * @author Ivan Tcholakov , 2015 - 2022 * @author Ryan Marshall , 2011 - 2015, @link http://irealms.co.uk * * Code repository: @link https://github.com/ivantcholakov/Codeigniter-Gravatar * - * @version 1.1.2 + * @version 1.1.3 * * @license The MIT License (MIT) * @link http://opensource.org/licenses/MIT @@ -241,7 +241,7 @@ public function execute_profile_request($email, $format = null) { } } - $format = trim($format); + $format = trim((string) $format); if ($format != '') { $format = '.'.ltrim($format, '.'); @@ -332,7 +332,7 @@ public function last_error() { */ public function create_hash($email) { - return md5(strtolower(trim($email))); + return md5(strtolower(trim((string) $email))); } protected function is_https() { @@ -369,7 +369,7 @@ protected function is_https() { */ public function set_email($email) { - $email = trim(strtolower($email)); + $email = trim(strtolower((string) $email)); if ( ! filter_var($email, FILTER_VALIDATE_EMAIL) === FALSE) {