[xoops-cvslog 99] CVS update: xoops2jp/html/class/mail/phpmailer

Back to archive index

onokazu onoka****@users*****
2005年 6月 11日 (土) 11:32:39 JST


Index: xoops2jp/html/class/mail/phpmailer/class.smtp.php
diff -u xoops2jp/html/class/mail/phpmailer/class.smtp.php:1.1 xoops2jp/html/class/mail/phpmailer/class.smtp.php:1.2
--- xoops2jp/html/class/mail/phpmailer/class.smtp.php:1.1	Thu Sep  9 14:14:50 2004
+++ xoops2jp/html/class/mail/phpmailer/class.smtp.php	Sat Jun 11 11:32:39 2005
@@ -314,6 +314,14 @@
             # smaller lines
             while(strlen($line) > $max_line_length) {
                 $pos = strrpos(substr($line,0,$max_line_length)," ");
+
+                // fix for infinite loop bug
+                // added by onokazu, 2005/5/31
+                if (!$pos) {
+                    $pos = $max_line_length - 1;
+                }
+                // end fix
+
                 $lines_out[] = substr($line,0,$pos);
                 $line = substr($line,$pos + 1);
                 # if we are processing headers we need to


xoops-cvslog メーリングリストの案内
Back to archive index