thomascube
2007-06-12 95609c48f5f51a2a662d2b77d55aad6fae73a112
Minor bugfixes reported on the dev-list

3 files modified
18 ■■■■ changed files
CHANGELOG 9 ●●●●● patch | view | raw | blame | history
program/include/main.inc 7 ●●●● patch | view | raw | blame | history
program/steps/mail/sendmail.inc 2 ●●● patch | view | raw | blame | history
CHANGELOG
@@ -1,6 +1,15 @@
CHANGELOG RoundCube Webmail
---------------------------
2007/06/12 (thomasb)
----------
- Updated Turkish, Polish, Finnish/Suomi, Japanese, Hungarian, Greek, Euskara localization
- Added Irish/Gaelic translation
- Little correction in Swedish translation
- Quote username for virtuser_query
- Pass-by-reference workarround for PHP5 in sendmail.inc
2007/06/04 (estadtherr)
----------
- Fixed bug in HTML->Plain editor toggling
program/include/main.inc
@@ -605,8 +605,9 @@
    // try to resolve the e-mail address from the virtuser table
    if (!empty($CONFIG['virtuser_query']) &&
        ($sql_result = $DB->query(preg_replace('/%u/', $user, $CONFIG['virtuser_query']))) &&
        ($sql_result = $DB->query(preg_replace('/%u/', $DB->quote($user), $CONFIG['virtuser_query']))) &&
        ($DB->num_rows()>0))
    {
      while ($sql_arr = $DB->fetch_array($sql_result))
        {
        $DB->query("INSERT INTO ".get_table_name('identities')."
@@ -615,6 +616,7 @@
                   $user_id,
                   strip_newlines($user_name),
                   preg_replace('/^@/', $user . '@', $sql_arr[0]));
      }
        }
    else
      {
@@ -632,7 +634,8 @@
    }
  else
    {
    raise_error(array('code' => 500,
    raise_error(array(
      'code' => 500,
                      'type' => 'php',
                      'line' => __LINE__,
                      'file' => __FILE__,
program/steps/mail/sendmail.inc
@@ -333,7 +333,7 @@
  
    // send message
    $smtp_response = array();
    $sent = smtp_mail($from, $a_recipients, $MAIL_MIME->txtHeaders($send_headers), $msg_body, $smtp_response);
    $sent = smtp_mail($from, $a_recipients, ($foo = $MAIL_MIME->txtHeaders($send_headers)), $msg_body, $smtp_response);
  
    // log error
    if (!$sent)