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

List:       kde-commits
Subject:    kdelibs/kdecore/network
From:       Thiago Macieira <thiago.macieira () kdemail ! net>
Date:       2005-01-13 19:09:52
Message-ID: 20050113190952.278B31BB81 () office ! kde ! org
[Download RAW message or body]

CVS commit by thiago: 

Allow one trailing dot in the domain name. Sorry it took so long to
come up with the fix.

BUG:93008


  M +5 -1      kresolver.cpp   1.42


--- kdelibs/kdecore/network/kresolver.cpp  #1.41:1.42
@@ -982,5 +982,5 @@ static QStringList splitLabels(const QSt
         }
     }
-  if ((long)i > start)
+  if ((long)i >= start)
     // there is still one left
     lst << unicodeDomain.mid(start, i - start);
@@ -998,4 +998,8 @@ static QCString ToASCII(const QString& l
     return (char*)0L;           // invalid label
 
+  if (label.length() == 0)
+    // this is allowed
+    return QCString("");        // empty, not null
+
   QCString retval;
   char buf[65];


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

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