[Pkg-owncloud-commits] [owncloud-client] 91/159: Networkjobs: Only log a subset of the account url.

Sandro Knauß hefee-guest at moszumanska.debian.org
Fri May 1 13:05:29 UTC 2015


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit ec81cdefb0c133d2cc8f6fac27dad60b258bd430
Author: Klaas Freitag <freitag at owncloud.com>
Date:   Sun Apr 12 12:35:40 2015 +0200

    Networkjobs: Only log a subset of the account url.
    
    This avoids disclosing of user and password in the logfile which can
    happen in some cases.
---
 binary                      | 2 +-
 src/libsync/networkjobs.cpp | 5 ++++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/binary b/binary
index 01d7396..139acd1 160000
--- a/binary
+++ b/binary
@@ -1 +1 @@
-Subproject commit 01d73965dc8b862d1b2310d3ef801c297b697ec7
+Subproject commit 139acd195bd74f69ff93d37cba7eec62fec77287
diff --git a/src/libsync/networkjobs.cpp b/src/libsync/networkjobs.cpp
index 5bd4144..96edf8d 100644
--- a/src/libsync/networkjobs.cpp
+++ b/src/libsync/networkjobs.cpp
@@ -223,7 +223,10 @@ void AbstractNetworkJob::start()
     _durationTimer.start();
     _duration = 0;
 
-    qDebug() << "!!!" << metaObject()->className() << "created for" << account()->url() << "querying" << path();
+    const QUrl url = account()->url();
+    const QString displayUrl = QString( "%1://%2%3").arg(url.scheme()).arg(url.host()).arg(url.path());
+
+    qDebug() << "!!!" << metaObject()->className() << "created for" << displayUrl << "+" << path();
 }
 
 void AbstractNetworkJob::slotTimeout()

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list