From kde-commits Fri Oct 24 00:25:25 2008 From: Maks Orlovich Date: Fri, 24 Oct 2008 00:25:25 +0000 To: kde-commits Subject: branches/KDE/4.1/kdelibs/khtml/ecma Message-Id: <1224807925.561268.26862.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=122480793530195 SVN commit 875314 by orlovich: Don't return -1 for location.port when no port is set (regression due to change in KUrl semantics). Fixes recent quotes on google finance page. BUG:172371 M +1 -1 kjs_window.cpp --- branches/KDE/4.1/kdelibs/khtml/ecma/kjs_window.cpp #875313:875314 @@ -2551,7 +2551,7 @@ return jsString(""); return jsString( UString(url.path().isEmpty() ? QString("/") : url.path()) ); case Port: - return jsString( UString(url.port() ? QString::number((int)url.port()) : QLatin1String("")) ); + return jsString( UString(url.port() > 0 ? QString::number((int)url.port()) : QLatin1String("")) ); case Protocol: return jsString( UString(url.protocol()+':') ); case Search: