github getgrav/grav 2.2.38

one hour ago

Security

  • Twig in page content can read a page's header and page fields through value(), but no longer its raw source (value('content'), value('frontmatter')) or a Flex page's other stored properties. Thanks @manus-pi

Improved

  • Markdown output keeps the page date as written: 2025-01-04 stays a date, 2025-01-04 10:35 becomes an ISO 8601 time with the site's timezone, and a page with no date in its header no longer gets its file's modified date. A new onMarkdownOutputFrontmatter event lets a site add fields such as an updated date. Thanks @carstenfeller #4439

Bugfix

  • GRAV.YES and GRAV.NO are translated again when PHP has the yaml extension, so form emails show "Yes" (or "Ja", "Oui") instead of GRAV.YES for a ticked checkbox. Single-language files such as system/languages/en.yaml now get the same check for YES: / NO: keys as every other YAML file. Thanks @nerdyjan #4440

Don't miss a new grav release

NewReleases is sending notifications on new releases.