[Pkg-kde-bugs-fwd] [Bug 98788] Possible solution to IDN domain spoofing/phising

Waldo Bastian 98788@bugs.kde.org
25 Feb 2005 12:00:26 -0000


------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
         
http://bugs.kde.org/show_bug.cgi?id=98788         




------- Additional Comments From bastian kde org  2005-02-25 13:00 -------
CVS commit by waba: 

Disable IDN by default.
Patch by Thiago
CCBUG: 98788


  M +6 -0      kresolver.cpp   1.43


--- kdelibs/kdecore/network/kresolver.cpp  #1.42:1.43
 @ -33,4 +33,5  @
 #include <arpa/inet.h>
 #include <netinet/in.h>
+#include <stdlib.h>
 
 // Qt includes
 @ -870,4 +871,7  @ static QString ToUnicode(const QString& 
 QCString KResolver::domainToAscii(const QString& unicodeDomain)
 {
+  if (getenv("KDE_USE_IDN") == 0L)
+    return unicodeDomain.latin1();
+
   QCString retval;
   // RFC 3490, section 4 describes the operation:
 @ -909,4 +913,6  @ QString KResolver::domainToUnicode(const
   if (asciiDomain.isEmpty())
     return asciiDomain;
+  if (getenv("KDE_USE_IDN") == 0L)
+    return asciiDomain;;
 
   QString retval;