-+ /* check for spam attempts with buggy webforms */
-+ if (strchr(to, '\n') != NULL || strchr(to, '\r') != NULL) {
-+ zend_error(E_WARNING, "Newlines aren't allowed in the To header. Mail not sent.");
-+ RETURN_FALSE;
-+ }
-+
-+ if (strchr(subject, '\n') != NULL || strchr(subject, '\r') != NULL) {
-+ zend_error(E_WARNING, "Newlines aren't allowed in the Subject header. Mail not sent.");
-+ RETURN_FALSE;
-+ }
-+
-+ /* search for to, cc or bcc headers */