[Vtigercrm-commits] [vtiger-commits] r4402 - /vtigercrm/branches/4.2/include/RelatedListView.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Thu Mar 23 00:50:23 EST 2006


Author: mfedyk
Date: Wed Mar 22 22:50:20 2006
New Revision: 4402

Log:
urlencode the downloading filename to deal with special characters, by mcrowe. closes #64

Modified:
    vtigercrm/branches/4.2/include/RelatedListView.php

Modified: vtigercrm/branches/4.2/include/RelatedListView.php
==============================================================================
--- vtigercrm/branches/4.2/include/RelatedListView.php (original)
+++ vtigercrm/branches/4.2/include/RelatedListView.php Wed Mar 22 22:50:20 2006
@@ -299,7 +299,7 @@
 
 		$list .= '<td WIDTH="1" class="blackLine"><IMG SRC="themes/'.$theme.'/images/blank.gif">';
 		$list .= '<td width="15%" height="21" style="padding:0px 3px 0px 3px;">';
-		$list .= '<a href = "index.php?module=uploads&action=downloadfile&return_module=Accounts&activity_type='.$row[1].'&fileid='.$row[5].'&filename='.$row[2].'">'.$row[2].'</a>';
+		$list .= '<a href = "index.php?module=uploads&action=downloadfile&return_module=Accounts&activity_type=' . $row[1] . '&fileid=' . $row[5] . '&filename=' . urlencode($row[2]) . '">' . $row[2] . '</a>';
 		$list .= '</td>';
 
 		$list .= '<td WIDTH="1" class="blackLine"><IMG SRC="themes/'.$theme.'/images/blank.gif">';





More information about the vtigercrm-commits mailing list