mirror of
https://github.com/smarty-php/smarty.git
synced 2025-10-27 18:31:36 +01:00
fixed quoting of values in smarty_function_popup()
This commit is contained in:
@@ -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