News for hackers. Stuff that matters.
Re:PHP 7 deployment at Dailymotion by Drdrdrq on Friday October 14, 2016 @02:38PM (#12710201)
Pro tip - first thing when you start a PHP project:

- move all superglobals to your private vars

- only allow access to these vars through your special functions which REQUIRE from programmer to specify type and validation / sanitization (regex for strings, min/max for numbers,...)

Make it difficult for programmers to use unsanitized vars and you will have much more secure code.

Not sure why no frameworks (that I know of) do this, but fortunately it is easy to add this.

There are no comments on this comment yet.