TwixtedChaox / Guerrilla-SMTPd

Guerrilla SMTPd is minimalist, event-driven I/O, non-blocking SMTP server. The design goal and purpose of Guerrilla SMTPd is to receive large volumes of email and nothing much else. It happily gobbles down millions of emails every week on a single processor system.
http://www.guerrillamail.com
160 stars 25 forks source link

smtpd.php: fixing GM_ALLOWED_HOSTS's first domain not allowed #6

Closed myselfhimself closed 10 years ago

myselfhimself commented 10 years ago

current proposed is_host_allowed() implementation returns 0 when the current sender's email address domain is first in GM_ALLOWED_HOSTS's comma separated values. This makes if(is_host_allowed()) tests in other places in this file to fail because 0 is interpreted as false. Adding is_numeric() before return in is_host_allowed() to force sending either true or false, but never 0 (or another integer).

flashmob commented 10 years ago

Thank you