Changes between Initial Version and Version 3 of Ticket #3568
- Timestamp:
- 01/12/07 18:20:10 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #3568
- Property Severity changed from critical to major
- Property Milestone changed from 2.2 to 2.1
-
Ticket #3568 – Description
initial v3 5 5 Also - You need to do the same for the $content variable too if you haven't done that: 6 6 7 preg_replace("/'/","\\'",$content),7 preg_replace("/'/","\\'",$content), 8 8 9 9 I still had the issue on [http://advertising-info.org/ advertising-info.org] so I started throubleshooting some more. It has cost me about 10 hours to find what the issue was. Finally I found it (it's a bug in the standard wordpress code and it is up to 2.0.5 so I got to report this to the wp coders as well): … … 11 11 In class-pop3.php (in /wp-includes/) there is the following line in the function "get": 12 12 13 while ( !ereg("^\.\r\n",$line))13 while ( !ereg("^\.\r\n",$line)) 14 14 15 15 This is incorrect! What happens I think is the following: if a certain message had a "." on a newline (I think this may happen for instance if the "." was just cut-off by the the max lenght of the line and was therefore placed on the next line, or when someone just placed a dot on a line and then a \r\n return/newline.) … … 17 17 To fix this issue: swap the above to this: 18 18 19 while (!feof($fp))19 while (!feof($fp)) 20 20 21 21 While in fact this will not do much (I do not think that the mail server will actually report an end-of-file) the following piece of the "get" function will now kick-in; 22 22 23 if(empty($line)) { break; }23 if(empty($line)) { break; } 24 24 25 25 And stop reading from the mail server when the end of the message was reached. … … 30 30 31 31 If you want to test for yourself if this is the issue you are having, simply change the code in class-pop3.php to the following: 32 32 {{{ 33 33 while (!feof($fp)) 34 34 { … … 42 42 break; } 43 43 } 44 44 }}} 45 45 This will output all the lines while reading from the mail server (you can see the output of this by manually runing postie from the options in WP) 46 46