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:
parent
3755caa12a
commit
bc8a2de9d4
@ -6253,7 +6253,7 @@ QDataStream &operator>>(QDataStream &in, QUrl &url)
|
|||||||
#ifndef QT_NO_DEBUG_STREAM
|
#ifndef QT_NO_DEBUG_STREAM
|
||||||
QDebug operator<<(QDebug d, const QUrl &url)
|
QDebug operator<<(QDebug d, const QUrl &url)
|
||||||
{
|
{
|
||||||
d.maybeSpace() << "QUrl(" << url.toString() << ')';
|
d.maybeSpace() << "QUrl(" << url.toDisplayString() << ')';
|
||||||
return d.space();
|
return d.space();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user