Skip to content

Releases

2.2.35-ls21

Choose a tag to compare

@github-actions github-actions released this 28 Nov 21:37

CI

Test report · Build status

LinuxServer changes

Full Changelog: 2.2.35-ls20...2.2.35-ls21

Upstream changes

Source: https://github.com/getgrav/grav/releases/tag/2.2.35

Bugfix

  • [security] The security fixes below were found by Anthropic's OSS Scanner
  • [security] Page and taxonomy setters called from Twig in page content keep only plain data, and the session options in system configuration can't be read from page content
  • [security] Page content can only change the page being rendered: setter methods called with arguments on any other page are refused
  • [security] Saving a Flex group or account no longer drops a permission that overrides the one above it, such as a denied backup under allowed system access
  • [security] The Twig constant test follows the content sandbox's function allowlist, a collection's sort_flags only accepts sort flag names, and media_directory() only opens local media folders
  • [security] The asset pipeline and inline asset loader only read stylesheets and scripts inside the Grav folder, and asset lists that can't be encoded get a bundle of their own
  • [security] Folders named like configuration files are no longer loaded as configuration (run bin/grav clear once after updating)
  • [security] The detailed error page no longer shows environment variable values or stack trace arguments
  • [security] New sites show the simple error page by default, and errors.display can be turned on in user/config/system.yaml when the detailed page is needed
  • [security] vardump() always prints its output as escaped plain text
  • [security] The debugger always hides protected configuration, its own token and login details, whatever censored is set to
  • [security] Absolute links in page content always use the site's own address and port, including a full custom base URL
  • [security] A request that still carries a session id replaced at login gets a new empty session instead of the signed-in one
  • [security] The built-in PHP server router applies its access rules when Grav runs from a subfolder with GRAV_BASEDIR
  • [security] A Flex page's template only picks a blueprint when it names a registered page type, and only .yaml files are trusted as blueprints
  • [security] Pending form uploads are stored in a folder named after a hash of the session id, so uploads pending during the update have to be added again
  • [security] The language page header is only used when it is a plain language code
  • [security] Saving an account through a form keeps only the avatar files the account already has
  • [security] Passwords that haven't been hashed yet are no longer returned with account data
  • [security] Creating a group that grants super admin needs a super admin, managing super admin accounts and groups through Flex forms needs super admin granted by name, and super admin groups in any environment's groups.yaml count for that protection
  • [security] A session is signed out when its account was re-created under the same username, and passkeys removed from an account are removed from its open sessions
  • [security] Saving one group no longer undoes changes others made to the groups file at the same time, and refreshing a Flex object picks up access changes stored since it was loaded
  • [security] Saving a Flex object clears its cached copy for every host name, and accounts with digit-only usernames are found again with folder storage
  • [security] Creating, updating or checking a Flex object can no longer replace another object, take a storage key from submitted data or skip the permission check when no user is passed
  • [security] Saving a page through a front-end Flex pages form no longer replaces another page when its source page was deleted or moved, and an empty template no longer renames the page file
  • [security] Front-end Flex pages forms always check create permission on the parent page, and page rules apply to groups with digit-only names and never to a disabled account or an unfinished login
  • [security] With Flex pages enabled, each page keeps the language of its own file, pages in suffixed default-language files pass their permissions to their children, and deleting a folder with sub-folders the page index can't list is refused
  • [security] A page's routes aliases, default or canonical route only claim URLs that no other page already has by its folder or slug
  • [security] Uploaded file names with .var among their extensions are refused, and the shipped .htaccess turns off Apache's type-map handler (added to existing sites on update)
  • [security] An uploaded SVG is sanitized even when saving its metadata file fails
  • [security] Images that wouldn't fit in PHP's memory limit, JPEGs with more than 100 scans and oversized zoomCrop canvases are served as the original, and fixing an image's orientation reads only its Exif orientation
  • [security] Checking form input for XSS takes time in line with the input's size and stops at the first flagged value
  • [security] Footnote labels and abbreviation meanings in Markdown Extra are escaped, and a page whose frontmatter can't be read shows the invalid frontmatter page instead of being served as content
  • Flex pages protect Twig tags from Markdown with the same placeholders regular pages use, and removing a markdown="1" attribute no longer joins the text around it
  • The invalid frontmatter page shows the parser's message as plain text
  • A module renders its template in the format of the page that embeds it, and a format that isn't a plain extension (such as amp.html) uses the HTML template
  • HTML captured in page Twig and passed to a theme partial shows as text, and page titles and menu names are always text
  • The safe_email filter handles text that isn't valid UTF-8
  • Deferred blocks inside a Twig capture in page content no longer cut the page's output short
  • With frontmatter Twig on, a printed quote no longer breaks the pages build, and the shared lazy page index isn't used
  • A slow JSON upload no longer holds up plugin updates, and JSON declared larger than the limit is refused unread
  • Error pages and other pages built on the fly no longer fill the cache with entries that are never read
  • Non-POST multipart requests with more parts than PHP allows are refused, and an over-long boundary is ignored
  • Setting a Flex page header with a bare header. name no longer replaces the whole header
  • Forms named 0 are no longer dropped from the page that shows them
  • Form error messages are escaped unless they come from field validation, and an email field that isn't multiple refuses a list of addresses
  • A routes.default page header that doesn't start with a single slash is ignored
  • Text fields report a value that isn't valid UTF-8 as invalid instead of empty
  • Wrong-typed values in the append_url_extension, taxonomy, lang and dateformat page headers no longer cause errors
  • Creating, moving or copying a Flex page into a folder that differs from a sibling's only by order prefix or case is refused
  • With Flex pages enabled, folders named 0 or containing @@ work like any other page instead of stopping the site
  • Deeply nested pages using cascade_unpublish no longer slow the Admin2 page list to a timeout
  • Flex simple and file storage no longer lose objects when a key is renamed, and saving JSON that can't be encoded fails instead of leaving an empty file
  • Creating a Flex object through the API applies the same field guards as updating one
  • Flex uploads and removals no longer touch files in media folders shared with other objects
  • A collection's page access filter matches nested access rules by name
  • Page media is no longer served through the page route in a language the page has no file for
  • WebP images get the generic placeholder thumbnail, so an empty .webp no longer breaks pages that use link() or lightbox()
  • A percentage resize on a page with an @2x image no longer fails
  • Compiled cache files are written without indentation, so a deeply nested header no longer produces a huge cache file
  • Saving a binary YAML list item that would read back differently is refused, and a page the YAML parser can't read no longer stops the site
  • A page with a malformed modular collection, sort or form name in its header no longer stops the page index from building
  • [security] An image saved again after url(false) or path(false) is cached under a name that covers every action queued on it, so it can no longer overwrite the cached file of another image

2.2.35-ls20

Choose a tag to compare

@github-actions github-actions released this 25 Nov 05:36

CI

Test report · Build status

LinuxServer changes

Full Changelog: 2.2.34-ls19...2.2.35-ls20

Upstream changes

Source: https://github.com/getgrav/grav/releases/tag/2.2.35

Bugfix

  • [security] The security fixes below were found by Anthropic's OSS Scanner
  • [security] Page and taxonomy setters called from Twig in page content keep only plain data, and the session options in system configuration can't be read from page content
  • [security] Page content can only change the page being rendered: setter methods called with arguments on any other page are refused
  • [security] Saving a Flex group or account no longer drops a permission that overrides the one above it, such as a denied backup under allowed system access
  • [security] The Twig constant test follows the content sandbox's function allowlist, a collection's sort_flags only accepts sort flag names, and media_directory() only opens local media folders
  • [security] The asset pipeline and inline asset loader only read stylesheets and scripts inside the Grav folder, and asset lists that can't be encoded get a bundle of their own
  • [security] Folders named like configuration files are no longer loaded as configuration (run bin/grav clear once after updating)
  • [security] The detailed error page no longer shows environment variable values or stack trace arguments
  • [security] New sites show the simple error page by default, and errors.display can be turned on in user/config/system.yaml when the detailed page is needed
  • [security] vardump() always prints its output as escaped plain text
  • [security] The debugger always hides protected configuration, its own token and login details, whatever censored is set to
  • [security] Absolute links in page content always use the site's own address and port, including a full custom base URL
  • [security] A request that still carries a session id replaced at login gets a new empty session instead of the signed-in one
  • [security] The built-in PHP server router applies its access rules when Grav runs from a subfolder with GRAV_BASEDIR
  • [security] A Flex page's template only picks a blueprint when it names a registered page type, and only .yaml files are trusted as blueprints
  • [security] Pending form uploads are stored in a folder named after a hash of the session id, so uploads pending during the update have to be added again
  • [security] The language page header is only used when it is a plain language code
  • [security] Saving an account through a form keeps only the avatar files the account already has
  • [security] Passwords that haven't been hashed yet are no longer returned with account data
  • [security] Creating a group that grants super admin needs a super admin, managing super admin accounts and groups through Flex forms needs super admin granted by name, and super admin groups in any environment's groups.yaml count for that protection
  • [security] A session is signed out when its account was re-created under the same username, and passkeys removed from an account are removed from its open sessions
  • [security] Saving one group no longer undoes changes others made to the groups file at the same time, and refreshing a Flex object picks up access changes stored since it was loaded
  • [security] Saving a Flex object clears its cached copy for every host name, and accounts with digit-only usernames are found again with folder storage
  • [security] Creating, updating or checking a Flex object can no longer replace another object, take a storage key from submitted data or skip the permission check when no user is passed
  • [security] Saving a page through a front-end Flex pages form no longer replaces another page when its source page was deleted or moved, and an empty template no longer renames the page file
  • [security] Front-end Flex pages forms always check create permission on the parent page, and page rules apply to groups with digit-only names and never to a disabled account or an unfinished login
  • [security] With Flex pages enabled, each page keeps the language of its own file, pages in suffixed default-language files pass their permissions to their children, and deleting a folder with sub-folders the page index can't list is refused
  • [security] A page's routes aliases, default or canonical route only claim URLs that no other page already has by its folder or slug
  • [security] Uploaded file names with .var among their extensions are refused, and the shipped .htaccess turns off Apache's type-map handler (added to existing sites on update)
  • [security] An uploaded SVG is sanitized even when saving its metadata file fails
  • [security] Images that wouldn't fit in PHP's memory limit, JPEGs with more than 100 scans and oversized zoomCrop canvases are served as the original, and fixing an image's orientation reads only its Exif orientation
  • [security] Checking form input for XSS takes time in line with the input's size and stops at the first flagged value
  • [security] Footnote labels and abbreviation meanings in Markdown Extra are escaped, and a page whose frontmatter can't be read shows the invalid frontmatter page instead of being served as content
  • Flex pages protect Twig tags from Markdown with the same placeholders regular pages use, and removing a markdown="1" attribute no longer joins the text around it
  • The invalid frontmatter page shows the parser's message as plain text
  • A module renders its template in the format of the page that embeds it, and a format that isn't a plain extension (such as amp.html) uses the HTML template
  • HTML captured in page Twig and passed to a theme partial shows as text, and page titles and menu names are always text
  • The safe_email filter handles text that isn't valid UTF-8
  • Deferred blocks inside a Twig capture in page content no longer cut the page's output short
  • With frontmatter Twig on, a printed quote no longer breaks the pages build, and the shared lazy page index isn't used
  • A slow JSON upload no longer holds up plugin updates, and JSON declared larger than the limit is refused unread
  • Error pages and other pages built on the fly no longer fill the cache with entries that are never read
  • Non-POST multipart requests with more parts than PHP allows are refused, and an over-long boundary is ignored
  • Setting a Flex page header with a bare header. name no longer replaces the whole header
  • Forms named 0 are no longer dropped from the page that shows them
  • Form error messages are escaped unless they come from field validation, and an email field that isn't multiple refuses a list of addresses
  • A routes.default page header that doesn't start with a single slash is ignored
  • Text fields report a value that isn't valid UTF-8 as invalid instead of empty
  • Wrong-typed values in the append_url_extension, taxonomy, lang and dateformat page headers no longer cause errors
  • Creating, moving or copying a Flex page into a folder that differs from a sibling's only by order prefix or case is refused
  • With Flex pages enabled, folders named 0 or containing @@ work like any other page instead of stopping the site
  • Deeply nested pages using cascade_unpublish no longer slow the Admin2 page list to a timeout
  • Flex simple and file storage no longer lose objects when a key is renamed, and saving JSON that can't be encoded fails instead of leaving an empty file
  • Creating a Flex object through the API applies the same field guards as updating one
  • Flex uploads and removals no longer touch files in media folders shared with other objects
  • A collection's page access filter matches nested access rules by name
  • Page media is no longer served through the page route in a language the page has no file for
  • WebP images get the generic placeholder thumbnail, so an empty .webp no longer breaks pages that use link() or lightbox()
  • A percentage resize on a page with an @2x image no longer fails
  • Compiled cache files are written without indentation, so a deeply nested header no longer produces a huge cache file
  • Saving a binary YAML list item that would read back differently is refused, and a page the YAML parser can't read no longer stops the site
  • A page with a malformed modular collection, sort or form name in its header no longer stops the page index from building
  • [security] An image saved again after url(false) or path(false) is cached under a name that covers every action queued on it, so it can no longer overwrite the cached file of another image

2.2.34-ls19

Choose a tag to compare

@github-actions github-actions released this 24 Nov 23:38

CI

Test report · Build status

LinuxServer changes

Full Changelog: 2.2.33-ls18...2.2.34-ls19

Upstream changes

Source: https://github.com/getgrav/grav/releases/tag/2.2.34

New

  • bin/grav install --dev and bin/grav composer --dev keep Composer's dev dependencies. Both commands always ran Composer with --no-dev, so running bin/grav install after a plain composer install removed the dev packages again #4422

Bugfix

  • The scheduler no longer forgets a job's last run when a slow run overlaps the next minute's run, which made hourly jobs that ran on time show as never having run
  • A browser that was signed in when its account was deleted is now signed out on its next request. Thanks to @inanna-malick for the report

2.2.33-ls18

Choose a tag to compare

@github-actions github-actions released this 24 Nov 17:38

CI

Test report · Build status

LinuxServer changes

Full Changelog: 2.2.33-ls17...2.2.33-ls18

Upstream changes

Source: https://github.com/getgrav/grav/releases/tag/2.2.33

Improved

  • Added PHP 8.6 compatibility (while keeping PHP 8.3+ support): replaced deprecated spl_object_hash() calls with spl_object_id(), replaced is_a() on possible strings with instanceof ArrayAccess, guarded parse_str() and Uri::pathExists() against NUL-byte ValueError exceptions, handled preg_grep() and Collator::asort() error fallbacks, normalized Page::taxonomy() input before array_walk(), and cleaned up remaining PHP 8.5+ deprecations (finfo_close(), Reflection*::setAccessible(), case ...;, null array offset in Job, and imagedestroy() in tests)
  • Faster page rendering on large sites: navigation menus work out the current page's parents once per request instead of once per menu item, and active()/activeChild() and absolute URLs look up a single route instead of loading every route from the lazy page index
  • Sorting a collection no longer encodes every page's metadata as JSON to build its cache key, which took about 1 ms per sort on a 2,000-page blog
  • dateRange and type/types collection filters read page dates and templates from the page index instead of loading every page in the collection (20–25% faster on a 2,000-page blog)
  • The Redis and Memcached cache drivers share one connection per request instead of opening one for each cache
  • Smaller savings: linked CSS/JS pipeline bundles aren't read from disk on every request, the summary-divider regex only runs when the content has a divider, and Collection::isFirst()/isLast() no longer copy the item list

Bugfix

  • A media:// (or other stream) image in a folder whose name starts with a number, such as a 2022/09 upload folder, rendered with a broken //media:2022//09/... address. Images with resize or crop actions and HTML <img> tags in content were affected too #4417
  • Utils::replaceLastOccurrence() no longer cuts in the wrong place when the text has multibyte characters before the match (/blog/über-uns.json came out as /blog/über-uns.)
  • Uri::post() with a filter no longer logs a PHP deprecation on every call. It compared against the deprecated FILTER_SANITIZE_STRING constant, which PHP 9 removes
  • Removed a call to ArrayAdapter::setNamespace(), which doesn't exist in Symfony Cache 7, from the array cache driver, plus a few smaller static-analysis cleanups
  • Grav\Framework\Psr7\ServerRequest, Grav\Framework\Logger\Processors\UserProcessor and Grav\Framework\Cache\Adapter\SessionCache load again. Their method signatures no longer matched PSR-7 2.0, Monolog 3 and Grav's cache base class, so PHP stopped with a fatal error on first use
  • The Flex relationship classes no longer log PHP deprecations when they load
  • FlexIndex::findFirst() and reduce() return a result instead of always returning null
  • bin/gpm selfupgrade no longer calls strftime(), which is deprecated and removed in PHP 9
  • Removed the unused Scheduler\SchedulerController class, which pointed to a scheduler class that no longer exists, and the scheduler service's setup for a scheduler.modern.enabled option that called methods that were gone. The scheduler sets up its own queue, workers and history from scheduler.modern
  • Replaced deprecated library calls (Cron factory(), Monolog level constants, Doctrine getOrderings(), utf8_encode()) and removed compatibility branches for Twig 1/2 and PHP 7 that could no longer run, plus an unused Monolog 1/2 shim
  • Object collection filtering (ObjectExpressionVisitor) no longer extends Doctrine's ClosureExpressionVisitor, which Doctrine marks final and may lock in a future major version. It builds on Doctrine's abstract ExpressionVisitor and handles AND/OR/NOT itself, with the same results

2.2.33-ls17

Choose a tag to compare

@github-actions github-actions released this 22 Nov 18:37

CI

Test report · Build status

LinuxServer changes

Full Changelog: 2.2.32-ls16...2.2.33-ls17

Upstream changes

Source: https://github.com/getgrav/grav/releases/tag/2.2.33

Improved

  • Added PHP 8.6 compatibility (while keeping PHP 8.3+ support): replaced deprecated spl_object_hash() calls with spl_object_id(), replaced is_a() on possible strings with instanceof ArrayAccess, guarded parse_str() and Uri::pathExists() against NUL-byte ValueError exceptions, handled preg_grep() and Collator::asort() error fallbacks, normalized Page::taxonomy() input before array_walk(), and cleaned up remaining PHP 8.5+ deprecations (finfo_close(), Reflection*::setAccessible(), case ...;, null array offset in Job, and imagedestroy() in tests)
  • Faster page rendering on large sites: navigation menus work out the current page's parents once per request instead of once per menu item, and active()/activeChild() and absolute URLs look up a single route instead of loading every route from the lazy page index
  • Sorting a collection no longer encodes every page's metadata as JSON to build its cache key, which took about 1 ms per sort on a 2,000-page blog
  • dateRange and type/types collection filters read page dates and templates from the page index instead of loading every page in the collection (20–25% faster on a 2,000-page blog)
  • The Redis and Memcached cache drivers share one connection per request instead of opening one for each cache
  • Smaller savings: linked CSS/JS pipeline bundles aren't read from disk on every request, the summary-divider regex only runs when the content has a divider, and Collection::isFirst()/isLast() no longer copy the item list

Bugfix

  • A media:// (or other stream) image in a folder whose name starts with a number, such as a 2022/09 upload folder, rendered with a broken //media:2022//09/... address. Images with resize or crop actions and HTML <img> tags in content were affected too #4417
  • Utils::replaceLastOccurrence() no longer cuts in the wrong place when the text has multibyte characters before the match (/blog/über-uns.json came out as /blog/über-uns.)
  • Uri::post() with a filter no longer logs a PHP deprecation on every call. It compared against the deprecated FILTER_SANITIZE_STRING constant, which PHP 9 removes
  • Removed a call to ArrayAdapter::setNamespace(), which doesn't exist in Symfony Cache 7, from the array cache driver, plus a few smaller static-analysis cleanups
  • Grav\Framework\Psr7\ServerRequest, Grav\Framework\Logger\Processors\UserProcessor and Grav\Framework\Cache\Adapter\SessionCache load again. Their method signatures no longer matched PSR-7 2.0, Monolog 3 and Grav's cache base class, so PHP stopped with a fatal error on first use
  • The Flex relationship classes no longer log PHP deprecations when they load
  • FlexIndex::findFirst() and reduce() return a result instead of always returning null
  • bin/gpm selfupgrade no longer calls strftime(), which is deprecated and removed in PHP 9
  • Removed the unused Scheduler\SchedulerController class, which pointed to a scheduler class that no longer exists, and the scheduler service's setup for a scheduler.modern.enabled option that called methods that were gone. The scheduler sets up its own queue, workers and history from scheduler.modern
  • Replaced deprecated library calls (Cron factory(), Monolog level constants, Doctrine getOrderings(), utf8_encode()) and removed compatibility branches for Twig 1/2 and PHP 7 that could no longer run, plus an unused Monolog 1/2 shim
  • Object collection filtering (ObjectExpressionVisitor) no longer extends Doctrine's ClosureExpressionVisitor, which Doctrine marks final and may lock in a future major version. It builds on Doctrine's abstract ExpressionVisitor and handles AND/OR/NOT itself, with the same results

2.2.32-ls16

Choose a tag to compare

@github-actions github-actions released this 20 Nov 21:38

CI

Test report · Build status

LinuxServer changes

Full Changelog: 2.2.31-ls15...2.2.32-ls16

Upstream changes

Source: https://github.com/getgrav/grav/releases/tag/2.2.32

Bugfix

  • Images referenced through a stream such as media:// now get a srcset from their @2x/@3x siblings, the same as page media admin2#222
  • The Template select on a page's Advanced tab in classic admin follows the "Hide page types" and "Hide module types" settings, and keeps a page's own template when it is hidden admin#2244

2.2.31-ls15

Choose a tag to compare

@github-actions github-actions released this 19 Nov 01:40

CI

Test report · Build status

LinuxServer changes

Full Changelog: 2.2.30-ls14...2.2.31-ls15

Upstream changes

Source: https://github.com/getgrav/grav/releases/tag/2.2.31

Bugfix

  • Media of an unpublished page, including a page unpublished by a parent with cascade_unpublish, is no longer served through the page route. Thanks @MAYASEVEN and @fazilsubair

2.2.30-ls14

Choose a tag to compare

@github-actions github-actions released this 16 Nov 19:38

CI

Test report · Build status

LinuxServer changes

Full Changelog: 2.2.29-ls13...2.2.30-ls14

Upstream changes

Source: https://github.com/getgrav/grav/releases/tag/2.2.30

Improved

  • Added Maltese (mt, Malti) to the language codes #4408

Bugfix

  • A scheduler run started from the admin on a host where PHP's proc_open is disabled skips the command jobs it can't start instead of recording them as failed, and still runs the jobs that call PHP, such as backups. Scheduler::canRun($job) tells the two apart #4397
  • Retina images up to @10x are grouped with their base image again, as on 1.7, instead of @5x and higher showing up as separate media. Missing steps are still only generated up to @4x, and deleting the base image no longer removes files above the limit that are listed on their own admin2#214
  • A summary: setting left empty in user/config/site.yaml, such as one whose lines are all commented out, no longer stops page summaries with an "Undefined array key" error (seen on simplesearch results). Summaries fall back to the shipped settings instead simplesearch#211

2.2.29-ls13

Choose a tag to compare

@github-actions github-actions released this 14 Nov 21:38

CI

Test report · Build status

LinuxServer changes

Full Changelog: 2.2.29-ls12...2.2.29-ls13

Upstream changes

Source: https://github.com/getgrav/grav/releases/tag/2.2.29

New

  • Log files in logs/ now rotate when they reach 10 MB: grav.log becomes grav.log.1, older copies are gzipped (grav.log.2.gz and on), and five are kept. grav.log, security.log and scheduler.log rotate as they are written, an hourly log-rotate scheduler job catches plugin logs, and bin/grav logrotate runs it by hand. Change or turn it off under system.log.rotate (Configuration → System → Error handler)
  • A page can unpublish everything below it along with itself. Set cascade_unpublish: true on a page (Options → "Unpublish child pages too"), and while that page is unpublished, by published: false or by its publish_date / unpublish_date, every page below it is unpublished too: left out of menus, collections, the sitemap and search, and not served. The pages below keep their own published setting, so they are back as they were once the parent is published again, and a section given a publish_date goes live all at once. system.pages.cascade_unpublish (Configuration → System → Content) sets the default for every page, and is off. $page->unpublishedBy() returns the route of the page that hides a page

Bugfix

  • A backup profile's Scheduled Backup switch now decides on its own whether the backup runs. An old Enabled or Disabled entry for the backup job in user/config/scheduler.yaml, which classic admin wrote whenever its Scheduler page was saved, used to override it, so backups could stop with the switch on #4397
  • A scheduler job that fails now keeps what it printed to standard output as well as its error output, so the reason shows in the job's history, user/data/scheduler/status.yaml and the output file. Most console commands print their errors to standard output, so a failed run used to be recorded with no output at all
  • A page with a link or image whose address is longer than any file path, such as an inline image written as /data:image/png;base64,..., no longer turns into an error page on servers with open_basedir set
  • Several Grav sites on one server no longer try to load each other's files. The class loader's APCu cache is now kept separate for each site, so a class found in one site's vendor/ folder is never looked up at another site's path #4392
  • The Page IDs option and the GFM and table Markdown options in Configuration → System use translation keys instead of English written into the blueprint, so they can be translated. The English comes from Admin2 2.2.13 and Admin 1.10.63

2.2.29-ls12

Choose a tag to compare

@github-actions github-actions released this 11 Nov 01:36

CI

Test report · Build status

LinuxServer changes

Full Changelog: 2.2.28-ls11...2.2.29-ls12

Upstream changes

Source: https://github.com/getgrav/grav/releases/tag/2.2.29

New

  • Log files in logs/ now rotate when they reach 10 MB: grav.log becomes grav.log.1, older copies are gzipped (grav.log.2.gz and on), and five are kept. grav.log, security.log and scheduler.log rotate as they are written, an hourly log-rotate scheduler job catches plugin logs, and bin/grav logrotate runs it by hand. Change or turn it off under system.log.rotate (Configuration → System → Error handler)
  • A page can unpublish everything below it along with itself. Set cascade_unpublish: true on a page (Options → "Unpublish child pages too"), and while that page is unpublished, by published: false or by its publish_date / unpublish_date, every page below it is unpublished too: left out of menus, collections, the sitemap and search, and not served. The pages below keep their own published setting, so they are back as they were once the parent is published again, and a section given a publish_date goes live all at once. system.pages.cascade_unpublish (Configuration → System → Content) sets the default for every page, and is off. $page->unpublishedBy() returns the route of the page that hides a page

Bugfix

  • A backup profile's Scheduled Backup switch now decides on its own whether the backup runs. An old Enabled or Disabled entry for the backup job in user/config/scheduler.yaml, which classic admin wrote whenever its Scheduler page was saved, used to override it, so backups could stop with the switch on #4397
  • A scheduler job that fails now keeps what it printed to standard output as well as its error output, so the reason shows in the job's history, user/data/scheduler/status.yaml and the output file. Most console commands print their errors to standard output, so a failed run used to be recorded with no output at all
  • A page with a link or image whose address is longer than any file path, such as an inline image written as /data:image/png;base64,..., no longer turns into an error page on servers with open_basedir set
  • Several Grav sites on one server no longer try to load each other's files. The class loader's APCu cache is now kept separate for each site, so a class found in one site's vendor/ folder is never looked up at another site's path #4392
  • The Page IDs option and the GFM and table Markdown options in Configuration → System use translation keys instead of English written into the blueprint, so they can be translated. The English comes from Admin2 2.2.13 and Admin 1.10.63