QUrl::fromUserInput: fix for urls without a host.
authorDavid Faure <faure+bluesystems@kde.org>
Fri, 21 Dec 2012 16:38:19 +0000 (17:38 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 14 Jan 2013 20:44:54 +0000 (21:44 +0100)
commit2e97dd401a09e4a9027dea885db7fd95e961a0c5
treeacff6664b12894ba1ec941347c73bb9d9ede4c75
parent1e1486b9cf49e1bb26f44cde7f7a6667614585b0
QUrl::fromUserInput: fix for urls without a host.

QUrl::fromUserInput("http://") was invalid, which doesn't make sense
since QUrl("http://") is valid. Same for "smb:" which is actually
even more a valid URL from a user's point of view.

Change-Id: I371ac393d61b49499edf5adbbc2a90b426fe9e5d
(cherry-picked from qt5 commit 8b2728ec382565c5bd57148600e34740a3c3fe52)
Reviewed-by: David Faure (KDE) <faure@kde.org>
src/corelib/io/qurl.cpp
tests/auto/qurl/tst_qurl.cpp