Skip to content

Commit

Permalink
Fixed an RCE vulnerability
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Sep 11, 2024
1 parent 7820268 commit 123e48a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Unreleased

- Updated Twig to 3.14. ([#15704](https://github.com/craftcms/cms/issues/15704))
- Fixed an RCE vulnerability.

## 4.12.1 - 2024-09-06

Expand Down
2 changes: 1 addition & 1 deletion src/helpers/FileHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public static function absolutePath(
$from = static::absolutePath($from, ds: $ds);
}

return $from . $ds . $to;
return static::normalizePath($from . $ds . $to, $ds);
}

/**
Expand Down

0 comments on commit 123e48a

Please sign in to comment.