[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE_3_4_BRANCH: kdelibs/kioslave/http/kcookiejar
From: Waldo Bastian <bastian () kde ! org>
Date: 2005-03-06 14:47:14
Message-ID: 20050306144714.3C70B2226 () office ! kde ! org
[Download RAW message or body]
CVS commit by waba:
Reverse the port number and hostname when dislplaying it to the user.
M +13 -2 kcookiewin.cpp 1.58.2.1
--- kdelibs/kioslave/http/kcookiejar/kcookiewin.cpp #1.58:1.58.2.1
@@ -114,5 +114,16 @@ KCookieWin::KCookieWin( QWidget *parent,
lbl->setAlignment( Qt::AlignCenter );
KHttpCookiePtr cookie = cookieList.first();
- txt = i18n("<b>%1</b>").arg( KIDNA::toUnicode(cookie->host()) );
+
+ QString host (cookie->host());
+ int pos = host.find(':');
+ if ( pos > 0 )
+ {
+ QString portNum = host.left(pos);
+ host.remove(0, pos+1);
+ host += ':';
+ host += portNum;
+ }
+
+ txt = QString("<b>%1</b>").arg( KIDNA::toUnicode(host) );
if (cookie->isCrossDomain())
txt += i18n(" <b>[Cross Domain!]</b>");
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic