Commit 3c892c64 by pupi1985

Do not log security form violations unless in debug mode

parent f22e8abb
...@@ -1189,7 +1189,7 @@ in a category for which they have elevated privileges). ...@@ -1189,7 +1189,7 @@ in a category for which they have elevated privileges).
$reportproblems[]='code '.$value.' malformed'; $reportproblems[]='code '.$value.' malformed';
} }
if (count($reportproblems)) if (!empty($reportproblems) && QA_DEBUG_PERFORMANCE)
@error_log( @error_log(
'PHP Question2Answer form security violation for '.$action. 'PHP Question2Answer form security violation for '.$action.
' by '.(qa_is_logged_in() ? ('userid '.qa_get_logged_in_userid()) : 'anonymous'). ' by '.(qa_is_logged_in() ? ('userid '.qa_get_logged_in_userid()) : 'anonymous').
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment