Skip to content

Commit

Permalink
Check on lowercase domain (#8)
Browse files Browse the repository at this point in the history
* lowercase domain

* fix code
  • Loading branch information
tohtamysh authored and Propaganistas committed Oct 6, 2019
1 parent c36aa99 commit 7398b98
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/DisposableDomains.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use ErrorException;
use Illuminate\Contracts\Cache\Repository as Cache;
use Illuminate\Support\Arr;
use Illuminate\Support\Str;
use Propaganistas\LaravelDisposableEmail\Traits\ParsesJson;

class DisposableDomains
Expand Down Expand Up @@ -110,7 +111,7 @@ protected function getFromStorage()
*/
public function isDisposable($email)
{
if ($domain = Arr::get(explode('@', $email, 2), 1)) {
if ($domain = Str::lower(Arr::get(explode('@', $email, 2), 1))) {
return in_array($domain, $this->domains);
}

Expand Down

0 comments on commit 7398b98

Please sign in to comment.