summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorSimon Wisselink <wisskid@users.noreply.github.com>2022-09-14 13:47:36 +0200
committerGitHub <noreply@github.com>2022-09-14 13:47:36 +0200
commite2e68b3622e3e4f0499477a9b353a333e449dfd1 (patch)
treeded3ef3a52c192d53c6b06e8773af1ba843566b0 /libs
parentffa2b81a8e354a49fd8a2f24742dc9dc399e8007 (diff)
downloadsmarty-e2e68b3622e3e4f0499477a9b353a333e449dfd1.tar.gz
smarty-e2e68b3622e3e4f0499477a9b353a333e449dfd1.tar.bz2
smarty-e2e68b3622e3e4f0499477a9b353a333e449dfd1.zip
clean output buffer for Throwable instead of just Exception (#797)
Fixes #514
Diffstat (limited to 'libs')
-rw-r--r--libs/sysplugins/smarty_internal_templatebase.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/sysplugins/smarty_internal_templatebase.php b/libs/sysplugins/smarty_internal_templatebase.php
index 2ffb896f..918362e9 100644
--- a/libs/sysplugins/smarty_internal_templatebase.php
+++ b/libs/sysplugins/smarty_internal_templatebase.php
@@ -257,7 +257,7 @@ abstract class Smarty_Internal_TemplateBase extends Smarty_Internal_Data
error_reporting($_smarty_old_error_level);
}
return $result;
- } catch (Exception $e) {
+ } catch (Throwable $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}