mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
fixed quoting of values in smarty_function_popup()
This commit is contained in:
1
NEWS
1
NEWS
@@ -1,3 +1,4 @@
|
||||
- fix quoting of values in smarty_function_popup() (messju)
|
||||
- fix handling of hidden sections in Config_File (messju)
|
||||
- add handling of resources for {config_load} (messju)
|
||||
- fix bug when using arrays with tr_attr and td_attr in {html_table} (messju)
|
||||
|
@@ -31,7 +31,7 @@ function smarty_function_popup($params, &$smarty)
|
||||
case 'caption':
|
||||
case 'closetext':
|
||||
case 'status':
|
||||
$append .= ',' . strtoupper($_key) . "','" . str_replace("'","\'",$_value) . "'";
|
||||
$append .= ',' . strtoupper($_key) . ",'" . str_replace("'","\'",$_value) . "'";
|
||||
break;
|
||||
|
||||
case 'fgcolor':
|
||||
@@ -65,7 +65,8 @@ function smarty_function_popup($params, &$smarty)
|
||||
case 'frame':
|
||||
case 'timeout':
|
||||
case 'delay':
|
||||
$append .= ',' . strtoupper($_key) . "','$_value'";
|
||||
case 'function':
|
||||
$append .= ',' . strtoupper($_key) . ",'$_value'";
|
||||
break;
|
||||
|
||||
case 'sticky':
|
||||
@@ -83,10 +84,6 @@ function smarty_function_popup($params, &$smarty)
|
||||
if ($_value) $append .= ',' . strtoupper($_key);
|
||||
break;
|
||||
|
||||
case 'function':
|
||||
$append .= ',' . strtoupper($_key) . "',$_value";
|
||||
break;
|
||||
|
||||
default:
|
||||
$smarty->trigger_error("[popup] unknown parameter $_key", E_USER_WARNING);
|
||||
}
|
||||
|
Reference in New Issue
Block a user