summaryrefslogtreecommitdiffstats
path: root/src/corelib/io
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2010-01-22 14:00:27 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2010-01-22 14:04:20 (GMT)
commit670f90b3068d530f14000eb816dd9ff38f9fb005 (patch)
treebc52714bce75cf01e7ccecbddae6643fdbcc4a3c /src/corelib/io
parentdf01c399c0d9f3412c872ad9ccb7342af0a44ea2 (diff)
downloadQt-670f90b3068d530f14000eb816dd9ff38f9fb005.zip
Qt-670f90b3068d530f14000eb816dd9ff38f9fb005.tar.gz
Qt-670f90b3068d530f14000eb816dd9ff38f9fb005.tar.bz2
Autotest: add a test for allowing hostnames ending in dot
Also, since domain is never empty, the idx > 0 test is unnecessary.
Diffstat (limited to 'src/corelib/io')
-rw-r--r--src/corelib/io/qurl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/io/qurl.cpp b/src/corelib/io/qurl.cpp
index ba1110d..076cc33 100644
--- a/src/corelib/io/qurl.cpp
+++ b/src/corelib/io/qurl.cpp
@@ -3242,7 +3242,7 @@ static QString qt_ACE_do(const QString &domain, AceOperation op)
int idx = nextDotDelimiter(domain, lastIdx);
int labelLength = idx - lastIdx;
if (labelLength == 0) {
- if (idx == domain.length() && idx > 0)
+ if (idx == domain.length())
break;
return QString(); // two delimiters in a row -- empty label not allowed
}