If a bad domain name is entered by the user, the function _whois_cleanup_address() currently calls drupal_set_message() as follows:
if (!empty($address) && empty($result['domain'])) {
drupal_set_message(t("Invalid address received."));
}
As this is an error condition, this should be:
if (!empty($address) && empty($result['domain'])) {
drupal_set_message(t("Invalid address received."), 'error');
}
Comments
Comment #1
helmo commentedThanks, committed for both D6 and D7