[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/4.1/kdelibs/khtml/ecma
From:       Maks Orlovich <maksim () kde ! org>
Date:       2008-10-24 0:25:25
Message-ID: 1224807925.561268.26862.nullmailer () svn ! kde ! org
[Download RAW message or body]

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:
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic