Lack of interest New config entry to define non loggable error log POST fields

xf_phantom

Well-known member
I think the title says everything necessary:p
In XenForo_Error
PHP:
// don't log passwords
         foreach ($request['_POST'] AS $key => &$value) {
           if (strpos($key, 'password') !== false || $key == '_xfToken') {
             $value = '********';
           }
         }

I'd like to censor some important & private userdata before they get saved in the db and get visible in the errorlog

Would be nice if i could insert something like
PHP:
$config['errorlog_censorfiels'] = array('UID', 'xxx');
into the config file
 
Top