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