summaryrefslogtreecommitdiff
path: root/lib/SQL/oracle.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/SQL/oracle.php')
-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;