You've already forked postfixadmin
mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2025-08-07 17:42:53 +03:00
update Smarty to v3.1.33 - "This release does cover security issue CVE-2018-16831, other bug fixes (see changelog.txt) and adds a new feature of the {capture} tag (see NEW_FEATURES.txt)."
This commit is contained in:
@@ -39,8 +39,8 @@ class Smarty_Internal_Method_Literals
|
||||
* @api Smarty::addLiterals()
|
||||
*
|
||||
* @param \Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty $obj
|
||||
* @param array|string $literals literal or list of literals
|
||||
* to add
|
||||
* @param array|string $literals literal or list of literals
|
||||
* to addto add
|
||||
*
|
||||
* @return \Smarty|\Smarty_Internal_Template
|
||||
* @throws \SmartyException
|
||||
@@ -59,8 +59,8 @@ class Smarty_Internal_Method_Literals
|
||||
* @api Smarty::setLiterals()
|
||||
*
|
||||
* @param \Smarty_Internal_TemplateBase|\Smarty_Internal_Template|\Smarty $obj
|
||||
* @param array|string $literals literal or list of literals
|
||||
* to set
|
||||
* @param array|string $literals literal or list of literals
|
||||
* to setto set
|
||||
*
|
||||
* @return \Smarty|\Smarty_Internal_Template
|
||||
* @throws \SmartyException
|
||||
@@ -80,7 +80,7 @@ class Smarty_Internal_Method_Literals
|
||||
* Smarty::$literals array gets filled with identical key values
|
||||
*
|
||||
* @param \Smarty $smarty
|
||||
* @param array $literals
|
||||
* @param array $literals
|
||||
*
|
||||
* @throws \SmartyException
|
||||
*/
|
||||
@@ -90,9 +90,11 @@ class Smarty_Internal_Method_Literals
|
||||
$error = isset($literals[ $smarty->left_delimiter ]) ? array($smarty->left_delimiter) : array();
|
||||
$error = isset($literals[ $smarty->right_delimiter ]) ? $error[] = $smarty->right_delimiter : $error;
|
||||
if (!empty($error)) {
|
||||
throw new SmartyException('User defined literal(s) "' . $error .
|
||||
'" may not be identical with left or right delimiter');
|
||||
throw new SmartyException(
|
||||
'User defined literal(s) "' . $error .
|
||||
'" may not be identical with left or right delimiter'
|
||||
);
|
||||
}
|
||||
$smarty->literals = array_merge((array)$smarty->literals, (array)$literals);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user