@@ -1540,7 +1541,13 @@ QString KURL::prettyURL( int _trailing )
u += "//";
if ( hasUser() )
{
- u += lazy_encode(m_strUser);
+ QString s = m_strUser;
+#ifndef KDE_QT_ONLY
+ // shorten the username, its unlikely to be valid without password anyway
+ if (!hasPass())
+ s = KStringHandler::csqueeze(s, 16);
+#endif
+ u += encode(s, 0, 0);
// Don't show password!
u += "@";
}