Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordiosmosis <benaka@piwik.pro>2014-09-14 08:51:33 +0400
committerdiosmosis <benaka@piwik.pro>2014-09-14 08:51:45 +0400
commit81f2279938dcf5e5542d03d6946746835d4bb850 (patch)
tree75174941e70f4dd19e55bf76ffeaad9a8d59b2be
parentb6761724f1b010925fb66eac3065cec1a1f314f4 (diff)
Do not log bind when logging SQL statements.
-rw-r--r--core/Db.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/Db.php b/core/Db.php
index eb6176f070..e845a5ab6e 100644
--- a/core/Db.php
+++ b/core/Db.php
@@ -683,6 +683,7 @@ class Db
private static function logSql($functionName, $sql, $parameters = array())
{
- Log::verbose("Db::%s() executing SQL:\n%s\nwith bind = %s", $functionName, $sql, $parameters);
+ // NOTE: at the moment we dont log bind in order to avoid sensitive information leaks
+ Log::verbose("Db::%s() executing SQL:\n%s", $functionName, $sql);
}
-} \ No newline at end of file
+}