[Vtigercrm-commits] [vtiger development] #5982: Allow non http based file reference in Documents

vtiger development vtiger-tickets at trac.vtiger.com
Thu May 28 14:08:41 EDT 2009


#5982: Allow non http based file reference in Documents
------------------------+---------------------------------------------------
  Reporter:  prasad     |       Owner:  developer 
      Type:  defect     |      Status:  new       
  Priority:  major      |   Milestone:  5.1.0     
 Component:  vtigercrm  |     Version:  5.1.0-val2
Resolution:             |    Keywords:            
------------------------+---------------------------------------------------
Comment (by prasad):

 Need to fix the prefix appending in Documents.php (function save_module)
 with:
 {{{
     $filelocationtype = 'E';
     $filename = $this->column_fields[$filename_fieldname];
     // If filename does not has the protocol prefix, default it to http://
     // Protocol prefix could be like (https://, smb://, file://, \\, ...)
     if(!empty($filename) && !preg_match('/^\w{1,5}:\/\/|^\\\\\\\\/',
 trim($filename), $match)) {
     $filename = "http://$filename";
 }
 }}}

-- 
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/5982#comment:2>
vtiger development <http://trac.vtiger.com/>
vtigerCRM




More information about the vtigercrm-commits mailing list