Commit a559ee8f by Scott Committed by GitHub

Merge pull request #460 from pupi1985/patch-72

Do not log security form violations unless in debug mode
parents 524a2fc0 3c892c64
...@@ -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