[BUGFIX] Correctly calculate bit-masks in JavaScriptModuleInstruction
Method JavaScriptModuleInstruction::addFlags used plain arithmetic calculation on bit-masks. In case corresponding flags were just given once, that would not have lead to problems. However, enabling the same bits multiple times would have lead to side-effects like disabling the added bit or enabling others. Resolves: #96662 Releases: main, 11.5 Change-Id: Id4d61884b116b07891ac99d0cc2814969529b7fa Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/73164 Tested-by:Benjamin Franzke <bfr@qbus.de> Tested-by:
core-ci <typo3@b13.com> Reviewed-by:
Benjamin Franzke <bfr@qbus.de>
Showing
- typo3/sysext/core/Classes/Page/JavaScriptModuleInstruction.php 3 additions, 1 deletion.../sysext/core/Classes/Page/JavaScriptModuleInstruction.php
- typo3/sysext/core/Tests/Unit/Page/JavaScriptModuleInstructionTest.php 46 additions, 0 deletions.../core/Tests/Unit/Page/JavaScriptModuleInstructionTest.php
Please register or sign in to comment