[TASK] Add possibility to create HashValue from actual payload
The new factory method `HashValue::hash('test')` creates the hash from the raw payload `'test'`. This is a simpler shortcut for using `HashValue::create(hash('sha256', 'test', true))`. Resolves: #103772 Releases: main, 12.4 Change-Id: Id201e166eeabc856b8d8dc498cc73cde8d5eb801 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/84114 Tested-by:Georg Ringer <georg.ringer@gmail.com> Tested-by:
core-ci <typo3@b13.com> Reviewed-by:
Georg Ringer <georg.ringer@gmail.com>
Showing
- typo3/sysext/core/Classes/Security/ContentSecurityPolicy/HashValue.php 6 additions, 0 deletions...core/Classes/Security/ContentSecurityPolicy/HashValue.php
- typo3/sysext/core/Tests/Functional/Security/ContentSecurityPolicy/PolicyTest.php 9 additions, 3 deletions.../Functional/Security/ContentSecurityPolicy/PolicyTest.php
Please register or sign in to comment