(10-09-2023, 04:48 AM)MrWhite Wrote: If the $this->validate() method working fine then why we need this new method? if $this->validate() returns true then we can be sure about the submitted data.
Because $this->validate() is broken. Even if $this->validate() returns true then we cannot be sure about the submitted data.
The true issue is what data $this->validate() validates.
If you create a normal form, you expect the data is POST data. But it is not sure $this->validate() validates it.
(10-09-2023, 04:48 AM)MrWhite Wrote: If the $this->validate() got any security issues, then that method is the one we have to fix, instead introduce new methods.
Yes, you are correct. But it seems impossible to me. If you can, feel free to send a Pull Request for it.