Skip to content

2.0.19

Latest

Choose a tag to compare

@rhukster rhukster released this 14 Aug 09:05
25f37b9

New

  • You can now tighten the Twig content sandbox below its built-in defaults with new denied_* settings in security.yaml.
  • The "Twig in Content" report can show the effective sandbox policy, so you can see exactly what page content is allowed to do.

Improved

  • A theme or plugin that ships its own .htaccess can no longer switch off the protection on its own folder, which used to leave its configuration and template files downloadable #4236
  • Twig in page content now renders on new installs by default, instead of appearing as raw text until the setting was turned on.
  • The long Twig sandbox allowlists now ship built into Grav, so security.yaml only records your own additions and future security updates to the defaults reach every site.
  • Existing sites that had trimmed those allowlists to tighten them keep exactly that policy after upgrading, now recorded as explicit denied_* entries.
  • Removed two rarely-used Twig sandbox switches (logging and admin_hint); both behaviours are now always on.

Bugfix

  • The content cross-site scripting check no longer objects to harmless <option> and <select> markup, whose original issue is fixed in the form field that actually rendered it.
  • Sites running with the Twig 2 compatibility setting no longer crash with a server error on every page once an update clears the template cache #4235