Zend Framework

Zend_Validate_EmailAddress: error message not set when 'mx' option is enabled

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.10.2
  • Fix Version/s: 1.10.3
  • Component/s: Zend_Validate
  • Labels:
    None

Description

The error message is not set when 'mx' is true. More specifically, in Zend_Validate_EmailAddress::_validateMXRecords Zend_Validate_EmailAddress::_error is never called when getmxrr returns false (i.e. when the domain has no mx entry), thus, although the validation fails no error message is set.

Activity

Hide
Burkhard Ritter added a comment -

This simple patch fixes the issue for me.

Show
Burkhard Ritter added a comment - This simple patch fixes the issue for me.
Hide
Thomas Weidner added a comment -

Patch is errorous.
Fixed with r21461.

Show
Thomas Weidner added a comment - Patch is errorous. Fixed with r21461.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: