Skip to content

Commit

Permalink
Read the public suffix list only once
Browse files Browse the repository at this point in the history
  • Loading branch information
kelunik committed Jul 13, 2017
1 parent d90d6ef commit 37794b8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Internal/PublicSuffixList.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ final class PublicSuffixList {
public static function isPublicSuffix(string $domain) {
if (!self::$initialized) {
self::readList();
self::$initialized = true;
}

$domain = normalizeDnsName($domain);
Expand Down

0 comments on commit 37794b8

Please sign in to comment.