Welcome Guest, Not a member yet? Register   Sign In
$this->validator->getValidated() looks stupid and unnecessary
#10

@MrWhite Does the following note in the User Guide answer your question?

Quote:Warning

When you use the validate() method, you should use the getValidated() method to get the validated data. Because the validate() method uses the Validation::withRequest() method internally, and it validates data from $request->getJSON() or $request->getRawInput() or $request->getVar(), and an attacker could change what data is validated.

https://codeigniter4.github.io/CodeIgnit...s-validate
Reply


Messages In This Thread
RE: $this->validator->getValidated() looks stupid and unnecessary - by kenjis - 10-09-2023, 02:04 PM



Theme © iAndrew 2016 - Forum software by © MyBB