Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release Notes for Craft CMS 5

## Unreleased

- Fixed a bug where an empty `@storage/runtime` directory could be created within the webroot. ([#18986](https://github.com/craftcms/cms/pull/18986))

## 5.10.4 - 2026-05-27

- Updated Twig to 3.27. ([#18980](https://github.com/craftcms/cms/pull/18980))
Expand Down
4 changes: 2 additions & 2 deletions bootstrap/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,8 @@
craft_modify_app_config($config, $appType);
}

// Create the storage/runtime/ folder if it doesn't already exist
$runtimePath = $config['runtimePath'] ?? $storagePath . DIRECTORY_SEPARATOR . 'runtime';
// Create the runtime folder if it doesn't already exist
$runtimePath = Craft::getAlias($config['runtimePath']);
$createFolder($runtimePath);
$ensureFolderIsReadable($runtimePath, true);

Expand Down