[Vtigercrm-commits] [vtiger-commits] r10749 - in /vtigercrm/branches/5.0.3/modules/Webmails: Webmails.php body.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Fri Apr 20 12:59:54 EDT 2007


Author: richie
Date: Fri Apr 20 10:59:49 2007
New Revision: 10749

Log:
* Fixed the issue in webmail attachment, Fixed #3667

Modified:
    vtigercrm/branches/5.0.3/modules/Webmails/Webmails.php
    vtigercrm/branches/5.0.3/modules/Webmails/body.php

Modified: vtigercrm/branches/5.0.3/modules/Webmails/Webmails.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Webmails/Webmails.php (original)
+++ vtigercrm/branches/5.0.3/modules/Webmails/Webmails.php Fri Apr 20 10:59:49 2007
@@ -424,7 +424,8 @@
                 for ($i = 0; $i < count($this_part->parts); $i++)
 	{
                     if ($part_no != ''){
-			if(!strpos($part_no,'.'))
+			$len = strlen($part_no);
+			if(!strpos($part_no,'.',($len-1)))
                      	   $part_no = $part_no . '.';
 		    }
                     // if it's an alternative, we skip the text part to only keep the HTML part

Modified: vtigercrm/branches/5.0.3/modules/Webmails/body.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Webmails/body.php (original)
+++ vtigercrm/branches/5.0.3/modules/Webmails/body.php Fri Apr 20 10:59:49 2007
@@ -101,7 +101,7 @@
                         {
 			echo '<hr />';
 			echo '<center>';
-			echo '<img src="index.php?module=Webmails&action=get_img&mail=' . $mailid.'&num=' . $tmp['number'] . '&mime=' . $img_type . '&transfer=' . $tmp['transfer'] . '" />';
+			echo '<img src="index.php?module=Webmails&action=get_img&mail=' . $mailid.'&mailbox='.$mailbox.'&num=' . $tmp['number'] . '&mime=' . $img_type . '&transfer=' . $tmp['transfer'] . '" />';
 			echo '</center>';
 	}                
 }                    





More information about the vtigercrm-commits mailing list