Skip to content

Commit fe01e0e

Browse files
committed
Improved error handling when rendering templates, so no html leaks when a php error occurs.
1 parent c333d32 commit fe01e0e

File tree

1 file changed

+1
-1
lines changed
  • lib/internal/Magento/Framework/View/TemplateEngine

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/View/TemplateEngine/Php.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function render(BlockInterface $block, $fileName, array $dictionary = [])
7070
extract($dictionary, EXTR_SKIP);
7171
include $fileName;
7272
$this->_currentBlock = $tmpBlock;
73-
} catch (\Exception $exception) {
73+
} catch (\Throwable $exception) {
7474
ob_end_clean();
7575
throw $exception;
7676
}

0 commit comments

Comments
 (0)