View Single Post
  #76  
Old 02-20-2013, 06:19 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: X-Cart 4.5.5 released

Quote:
Originally Posted by aim
These smarty plugins work correctly with 4.5.5

1 All from http://www.smarty.net/docsv2/en/ except features disabled by
http://www.smarty.net/docsv2/en/variable.security.tpl

2 All default and custom smarty plugins in the
include/templater/plugins/ directory

3 All custom smarty plugins registered via $smarty->register_*('some_plugin');

4 (Not recommended solution due to security reasons.)
'MODIFIER_FUNCS' => array(
'count',
'doubleval',
'trim',
'stripslashes',
'mt_rand',
'urlencode',
'is_array'

'IF_FUNCS' => array(
'array', 'list',
'isset', 'empty',
'count', 'sizeof',
'in_array', 'is_array',
'true', 'false', 'null'

5 print_r and func_print_r are enabled in DEVELOPMENT_MODE (Not recommended solution due to security reasons.)

6 All exceptions like (Not recommended solution due to security reasons.)
Code:
[17:53][aim@xcart:p4][~/www/xcart_4_5_x]$ grep security_settings modules modules/XMonitoring/config.php:array_push($smarty->security_settings['MODIFIER_FUNCS'], 'substr');

The recommended solutions are 1 2 and 3

Roll Call from our leading mod developers, please?
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4