clean output buffer for Throwable instead of just Exception (#797)

Fixes #514
This commit is contained in:
Simon Wisselink
2022-09-14 13:47:36 +02:00
committed by GitHub
parent ffa2b81a8e
commit e2e68b3622
2 changed files with 4 additions and 1 deletions

View File

@@ -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();
}