summaryrefslogtreecommitdiffstats
path: root/lib/SQL
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2015-03-06 03:57:41 -0500
committerAleksander Machniak <machniak@kolabsys.com>2015-03-06 03:57:41 -0500
commit3f80fd1b8b5f1344391740f142dec5ac6cfbe07d (patch)
treeb7997267b4bb0a69f2624afb6390e184607cfee9 /lib/SQL
parent8d180afa12bc87be916f96a13c2cdd6bde673242 (diff)
downloadwebadmin-3f80fd1b8b5f1344391740f142dec5ac6cfbe07d.tar.gz
Do not log database password (#4806)
Diffstat (limited to 'lib/SQL')
-rw-r--r--lib/SQL/oracle.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/SQL/oracle.php b/lib/SQL/oracle.php
index 4bc072c..9296474 100644
--- a/lib/SQL/oracle.php
+++ b/lib/SQL/oracle.php
@@ -36,7 +36,8 @@ class SQL_oracle extends SQL
protected function connect()
{
if (!$this->conn && !$this->conn_tried) {
- Log::debug("SQL: Connecting to " . $this->sql_uri);
+ $passwd_regex = '|^([a-zA-Z0-9]+://[^:]+:)[^@]+|';
+ Log::debug("SQL: Connecting to " . preg_replace($passwd_regex, '\\1***', $this->sql_uri));
$this->conn_tried = true;