Skip to content
This repository has been archived by the owner on Nov 4, 2023. It is now read-only.

Make GenerallUtillity:doRedirect throw an exception for non existing pages #45

Open
pulponair opened this issue May 14, 2019 · 1 comment

Comments

@pulponair
Copy link
Collaborator

pulponair commented May 14, 2019

Scenario:
DoRedirect is called with non existing pid

Result:
Empty content is shown due to:
https://github.com/PHORAX/formhandler/blob/master/Classes/Utility/GeneralUtility.php#L323

Solution:
Check output of:
https://github.com/PHORAX/formhandler/blob/master/Classes/Utility/GeneralUtility.php#L316 and throw an exception or show an error Message if $url ist empty.

@pulponair pulponair changed the title Make GenerallUtillity:doRedirce trow an exception for non existing pages Make GenerallUtillity:doRedirect throw an exception for non existing pages May 14, 2019
@7elix
Copy link
Collaborator

7elix commented Apr 8, 2021

Would you please send a pull request?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants