Do I need to sanitize user data for error_log () in PHP?

Do I need to sanitize user input from a public form when transferring data directly to:

error_log();

http://php.net/manual/en/function.error-log.php

I know this is a fairly simplified question, but I cannot find anything else.

thanks

+4
source share
1 answer

You do not need to sanitize the data if you register the Request data. Then for debugging you would like to know what was sent on request.

This is after verification, and then not, because you must have reliable data.

The only problem you need to solve is not to log sensitive data in a security context.

0
source

All Articles