Make WordPress Core

Changeset 1313


Ignore:
Timestamp:
05/19/2004 05:43:32 AM (21 years ago)
Author:
saxmatt
Message:

Timezone fix from Kimmo Suominen.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-mail.php

    r1158 r1313  
    55
    66error_reporting(2037);
     7
     8$time_difference = get_settings('gmt_offset');
    79
    810$pop3 = new POP3();
     
    4143            $content .= $line;
    4244        } else {
    43             if (preg_match('/Content-Type: /', $line)) {
     45            if (preg_match('/Content-Type: /i', $line)) {
    4446                $content_type = trim($line);
    4547                $content_type = substr($content_type, 14, strlen($content_type)-14);
     
    5254                $boundary = $boundary[1];
    5355            }
    54             if (preg_match('/Subject: /', $line)) {
     56            if (preg_match('/Subject: /i', $line)) {
    5557                $subject = trim($line);
    5658                $subject = substr($subject, 9, strlen($subject)-9);
     
    5961                }
    6062            }
    61             if (preg_match('/Date: /', $line)) { // of the form '20 Mar 2002 20:32:37'
     63            if (preg_match('/Date: /i', $line)) { // of the form '20 Mar 2002 20:32:37'
    6264                $ddate = trim($line);
    6365                $ddate = str_replace('Date: ', '', $ddate);
Note: See TracChangeset for help on using the changeset viewer.