[Digikam-devel] [Bug 261277] Windows and Linux Frontend using the same database
Marcel Wiesweg
marcel.wiesweg at gmx.de
Sat Oct 29 13:36:45 BST 2011
https://bugs.kde.org/show_bug.cgi?id=261277
--- Comment #13 from Marcel Wiesweg <marcel wiesweg gmx de> 2011-10-29 12:36:45 ---
Sorry, the URL formatting I gave is wrong: The second query item is appended
with a "&", the "?" is only appended once before all query items.
Interestingly, QUrl does not percent-encode the slashes at all:
"networkshareid:?mountpath=/mnt/test1&mountpath=/mnt/test2"
This test works:
QUrl url;
url.setScheme("networkshareid");
url.addQueryItem("mountpath", "/mnt/test1");
url.addQueryItem("mountpath", "/mnt/test2");
QByteArray urlString = url.toEncoded();
QUrl url2 = QUrl::fromEncoded(urlString);
qDebug() << url2.toEncoded()
<< url.toString();
qDebug() << url2.allQueryItemValues("mountpath");
Output
"networkshareid:?mountpath=/mnt/test1&mountpath=/mnt/test2"
"networkshareid:?mountpath=/mnt/test1&mountpath=/mnt/test2"
("/mnt/test1", "/mnt/test2")
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Digikam-devel
mailing list