Changeset 2280 for trunk


Ignore:
Timestamp:
Mar 17, 2008, 9:22:05 PM (17 years ago)
Author:
rub
Message:

Resolved issue 0000812: Format error with "$confenabled_format_email = false;"

Merge branch-1_7 2278:2279 into BSF

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions_mail.inc.php

    r2278 r2280  
    9999  global $conf;
    100100
     101  // Spring cleaning
     102  $cvt_email = trim(preg_replace('#[\n\r]+#s', '', $email));
     103
    101104  if ($conf['enabled_format_email'])
    102105  {
    103106    // Spring cleaning
    104107    $cvt_name = trim(preg_replace('#[\n\r]+#s', '', $name));
    105     $cvt_email = trim(preg_replace('#[\n\r]+#s', '', $email));
    106108
    107109    if ($cvt_name!="")
     
    740742function pwg_send_mail($result, $to, $subject, $content, $headers)
    741743{
    742  if (!$result)
    743  {
     744  if (!$result)
     745  {
    744746    global $conf_mail;
    745747
     
    764766      }
    765767    }
    766  }
     768  }
     769  else
     770  {
     771    return $result;
     772  }
    767773}
    768774
Note: See TracChangeset for help on using the changeset viewer.