diff options
author | Thiago Macieira <thiago.macieira@nokia.com> | 2010-09-07 17:00:10 (GMT) |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2010-09-10 08:53:31 (GMT) |
commit | ecac806359a092e2e09adb027e5a45d2cd993a9f (patch) | |
tree | 26ed050ebed52f6fddb73477b845d91332cb3170 /src/imports | |
parent | 16aeed255560b5e9479efe9b74517fb647922694 (diff) | |
download | Qt-ecac806359a092e2e09adb027e5a45d2cd993a9f.zip Qt-ecac806359a092e2e09adb027e5a45d2cd993a9f.tar.gz Qt-ecac806359a092e2e09adb027e5a45d2cd993a9f.tar.bz2 |
Update the error handling of invalid hostnames in QUrl.
This should let QUrl::errorString() show the original, invalid hostname
in the URL it reports to be invalid.
There may be a side-effect that QUrl::toEncoded() may include the broken
hostname on the first call, then miss it in the next calls. But since
QUrl::isValid() is returning false, we can consider that the result of
toEncoded() is undefined, so anything goes.
Reviewed-by: Olivier Goffart
Diffstat (limited to 'src/imports')
0 files changed, 0 insertions, 0 deletions