You've already forked postfixadmin
mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2025-08-09 05:02:44 +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:
@@ -64,10 +64,12 @@ class Smarty_Internal_Runtime_Capture
|
||||
if (!$this->isRegistered) {
|
||||
$this->register($_template);
|
||||
}
|
||||
$this->captureStack[] = array($buffer,
|
||||
$assign,
|
||||
$append);
|
||||
$this->captureCount ++;
|
||||
$this->captureStack[] = array(
|
||||
$buffer,
|
||||
$assign,
|
||||
$append
|
||||
);
|
||||
$this->captureCount++;
|
||||
ob_start();
|
||||
}
|
||||
|
||||
@@ -78,10 +80,14 @@ class Smarty_Internal_Runtime_Capture
|
||||
*/
|
||||
private function register(Smarty_Internal_Template $_template)
|
||||
{
|
||||
$_template->startRenderCallbacks[] = array($this,
|
||||
'startRender');
|
||||
$_template->endRenderCallbacks[] = array($this,
|
||||
'endRender');
|
||||
$_template->startRenderCallbacks[] = array(
|
||||
$this,
|
||||
'startRender'
|
||||
);
|
||||
$_template->endRenderCallbacks[] = array(
|
||||
$this,
|
||||
'endRender'
|
||||
);
|
||||
$this->startRender($_template);
|
||||
$this->isRegistered = true;
|
||||
}
|
||||
@@ -108,7 +114,7 @@ class Smarty_Internal_Runtime_Capture
|
||||
{
|
||||
if ($this->captureCount) {
|
||||
list($buffer, $assign, $append) = array_pop($this->captureStack);
|
||||
$this->captureCount --;
|
||||
$this->captureCount--;
|
||||
if (isset($assign)) {
|
||||
$_template->assign($assign, ob_get_contents());
|
||||
}
|
||||
@@ -137,7 +143,7 @@ class Smarty_Internal_Runtime_Capture
|
||||
* Return content of named capture buffer by key or as array
|
||||
*
|
||||
* @param \Smarty_Internal_Template $_template
|
||||
* @param string|null $name
|
||||
* @param string|null $name
|
||||
*
|
||||
* @return string|string[]|null
|
||||
*/
|
||||
@@ -165,5 +171,4 @@ class Smarty_Internal_Runtime_Capture
|
||||
$this->captureCount = array_pop($this->countStack);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user