Kirby v3.5.0-rc.6 Release Notes

Release Date: 2020-12-10 // almost 3 years ago

Previous changes from v3.5.0-rc.5

  • All the good stuff from:

    and โ€ฆ

    ๐Ÿ–จ More detailed accept options for file blueprints

    ๐Ÿ”ง Previously, file blueprints could be configured to only allow specific MIME types to be uploaded.

    • It is now possible to limit the uploaded files based on the file extension and/or the file type.

      accept: extension: jpg, png

      accept: type: image, audio, video

    • ๐Ÿ’ป These restrictions can be combined with a custom set of MIME types. This makes it possible to define MIME types that are compatible with all browsers while still protecting the uploads based on the extension and/or file type:

      accept: mime: image/*type: image

    In this example, Kirby will generate a file upload input with an accept="image/*" attribute and will then validate both the MIME type and the detected file type on the server after the file is uploaded.

    0๏ธโƒฃ If no restrictions are defined in the file blueprint, Kirby will now limit the accepted uploads to the types image, document, archive, audio and video by default. This protects your sites against unexpected uploads like code files that could be used to attack the server or the visitor's browsers.

    You can disable the automatic types and allow all uploads like this:

    accept: true# or:accept: mime: nullorientation: square...
    • ๐Ÿ†• New F::typeToExtensions() method

    โœจ Enhancements

    • Open table block on dblclick instead of single click
    • โž• Add props docs to writer and list fields
    • ๐Ÿ‘Œ Support import of em marks
    • ๐Ÿ†• New set of default ratios for the image block
    • โšก๏ธ Updated languages (ko, id, it)

    ๐Ÿ›  Fixes

    • ๐Ÿ›  Fixed the saved value for empty lists #2976
    • ๐Ÿ›  Fixed raw HTML parsing in Blocks::parse() #2972
    • ๐Ÿ›  Fixed empty text option for blocks/layout field
    • ๐Ÿ›  Fixed prev/next arrow bug
    • ๐Ÿ›  Fixed code block snippet
    • Don't load login form if logged in