mirror of
https://github.com/getgrav/grav.git
synced 2026-07-08 12:21:53 +02:00
site crashes if header is invalid #2343
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
* Removed `media.upload_limit` references
|
||||
* Twig `nicenumber`: do not use 0 + string casting hack
|
||||
* Converted Twig tags to use namespaced Twig classes
|
||||
* Site shows error on page rather than hard-crash when page has invalid frontmatter [#2343](https://github.com/getgrav/grav/issues/2343)
|
||||
1. [](#bugfix)
|
||||
* Grav 1.6: Fixed `FlexUser` loosing ACL information
|
||||
* Grav 1.6: Fixed `FlexUser::find()` breaking when nothing is found
|
||||
|
||||
@@ -346,7 +346,7 @@ class Page implements PageInterface
|
||||
$this->processFrontmatter();
|
||||
}
|
||||
}
|
||||
} catch (ParseException $e) {
|
||||
} catch (\Exception $e) {
|
||||
$file->raw(Grav::instance()['language']->translate([
|
||||
'GRAV.FRONTMATTER_ERROR_PAGE',
|
||||
$this->slug(),
|
||||
|
||||
Reference in New Issue
Block a user