Adjust a double leading slash in the path for FTP to /%2F
authorThiago Macieira <thiago.macieira@intel.com>
Tue, 3 Apr 2012 16:58:39 +0000 (13:58 -0300)
committerQt by Nokia <qt-info@nokia.com>
Tue, 10 Apr 2012 20:54:37 +0000 (22:54 +0200)
commitd4f3052a1b210c09976883afbe0fac087171be4f
treee5e040b532d37de0aa214bdcf0a85047e413bf7a
parent81d1f79a7f4b0f67d71d1c8c5c74e5a56ab48097
Adjust a double leading slash in the path for FTP to /%2F

Some FTP implementations (currently not including QNAM) strip the first
slash off the path in an FTP URL so that the path in the URL is relative
to the login path (the user's home directory). To reach the root
directory, another slash is necessary, hence the double slash.

In anticipation of future URL normalisation, which Qt 4 could do, "//"
could be rendered to "/", so this extra slash should be "%2F".

This operation is done only in QUrl::fromUserInput.

Change-Id: If9619ef6b546a3f4026cb26b74a7a5a865123609
Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
src/corelib/io/qurl.cpp
tests/auto/corelib/io/qurl/tst_qurl.cpp