[TASK] Migrate Redirect Url Validator into own class
The logic within EXT:felogin for validating proper redirect/referer URLs is extracted into a new PHP class, which can now be called separately. This is useful for further refactorings within the Controller, and it lays the foundation to use proper validation in various places other than Extbase. Resolves: #87660 Releases: master Change-Id: I79aab5908bde869b7ee3cf730fbf61d658f2ee88 Reviewed-on: https://review.typo3.org/59648 Tested-by:TYPO3com <noreply@typo3.com> Reviewed-by:
Georg Ringer <georg.ringer@gmail.com> Tested-by:
Georg Ringer <georg.ringer@gmail.com> Reviewed-by:
Anja Leichsenring <aleichsenring@ab-softlab.de> Tested-by:
Anja Leichsenring <aleichsenring@ab-softlab.de>
Showing
- typo3/sysext/felogin/Classes/Controller/FrontendLoginController.php 20 additions, 101 deletions...xt/felogin/Classes/Controller/FrontendLoginController.php
- typo3/sysext/felogin/Classes/Validation/RedirectUrlValidator.php 131 additions, 0 deletions...ysext/felogin/Classes/Validation/RedirectUrlValidator.php
- typo3/sysext/felogin/Tests/Unit/Controller/FrontendLoginControllerTest.php 30 additions, 324 deletions...gin/Tests/Unit/Controller/FrontendLoginControllerTest.php
- typo3/sysext/felogin/Tests/Unit/Validation/RedirectUrlValidatorTest.php 325 additions, 0 deletions...elogin/Tests/Unit/Validation/RedirectUrlValidatorTest.php
Please register or sign in to comment