equal
deleted
inserted
replaced
123 * @param string $host Requested host |
123 * @param string $host Requested host |
124 * @param string $reference dNSName to match against |
124 * @param string $reference dNSName to match against |
125 * @return boolean Does the domain match? |
125 * @return boolean Does the domain match? |
126 */ |
126 */ |
127 public static function match_domain($host, $reference) { |
127 public static function match_domain($host, $reference) { |
128 // Check if the reference is blacklisted first |
128 // Check if the reference is blocklisted first |
129 if (self::verify_reference_name($reference) !== true) { |
129 if (self::verify_reference_name($reference) !== true) { |
130 return false; |
130 return false; |
131 } |
131 } |
132 |
132 |
133 // Check for a direct match |
133 // Check for a direct match |