[Tickets #4462] RESOLVED: attachment.php sends mail to null address

bugs@bugs.horde.org bugs at bugs.horde.org
Mon Oct 2 02:37:12 PDT 2006


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=4462
-----------------------------------------------------------------------
 Ticket             | 4462
 Updated By         | srrafa at usc.es
 Summary            | attachment.php sends mail to null address
 Queue              | IMP
 Version            | HEAD
 Type               | Bug
 State              | Resolved
 Priority           | 1. Low
 Owners             | 
-----------------------------------------------------------------------


srrafa at usc.es (2006-10-02 02:37) wrote:

One issue still remains:

 "if ($mail_address)"  always returns true because
getDefaultFromAddress returns addresses enclosed between "<>", no matter
the content of $addr.

  function getDefaultFromAddress($fullname = false)
    {
        $from_addr = '';

        if ($fullname) {
            $name = $this->getValue('fullname');
            if (!empty($name)) {
                $from_addr = $name . ' ';
            }
        }

        $addr = $this->getValue('from_addr');
        if (empty($addr)) {
            $addr = Auth::getAuth();
        }

        return $from_addr . '<' . $addr . '>';
    }









More information about the bugs mailing list