View Single Post
  #74  
Old 02-20-2013, 06:01 AM
 
aim aim is offline
Advanced Staff Users
 

X-Cart team
  
Join Date: Dec 2008
Posts: 928
 

Default Re: X-Cart 4.5.5 released

Quote:
Originally Posted by carpeperdiem
We need a "master list" of plugins that worked fine in 4.5.4 but are "broken" by the "improvements" in 4.5.5


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
__________________
Sincerely yours,
Ildar Amankulov
Head of Maintenance group