Use toDisplayString when debugging urls (no passwords in logs)

Change-Id: I618027c5913438bf341864d07d4831f9e33633b6
Reviewed-by: Jonas Gastal <jgastal@profusion.mobi>
Reviewed-by: Giuseppe D'Angelo <dangelog@gmail.com>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
This commit is contained in:
David Faure 2012-02-09 14:23:25 +01:00 committed by Qt by Nokia
parent 3755caa12a
commit bc8a2de9d4

View File

@ -6253,7 +6253,7 @@ QDataStream &operator>>(QDataStream &in, QUrl &url)
#ifndef QT_NO_DEBUG_STREAM
QDebug operator<<(QDebug d, const QUrl &url)
{
d.maybeSpace() << "QUrl(" << url.toString() << ')';
d.maybeSpace() << "QUrl(" << url.toDisplayString() << ')';
return d.space();
}
#endif