[Vtigercrm-commits] [vtiger development] #7221: vtlib_purify fails to work when input is non-string type.

vtiger development vtiger-tickets at trac.vtiger.com
Tue Nov 15 02:48:12 PST 2011


#7221: vtlib_purify fails to work when input is non-string type.
------------------------+---------------------------------------------------
 Reporter:  prasad      |        Owner:  developer 
     Type:  defect      |       Status:  new       
 Priority:  unassigned  |    Milestone:  Unassigned
Component:  vtigercrm   |      Version:  5.3.0     
 Severity:  Medium      |   Resolution:            
 Keywords:              |  
------------------------+---------------------------------------------------
Comment (by prasad):

 Case to be handled in (include/utils/VtlibUtils.php)

 {{{
 function vtlib_purify(...

                 if($__htmlpurifier_instance) {
                         // Composite type
                         if (is_array($input)) {
                                 $value = array();
                                 foreach ($input as $k => $v) {
                                         $value[$k] = vtlib_purify($v,
 $ignore);
                                 }
                         } else { // Simple type
                                 $value =
 $__htmlpurifier_instance->purify($input);
                         }
                 }
 }}}

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



More information about the vtigercrm-commits mailing list