Details
-
Suggestion
-
Resolution: Out of scope
-
P2: Important
-
4.4.0
-
None
Description
The following fails:
QUrl url = QUrl::fromLocalFile("c:/depot/testing/test/../dir with space/test.html");
bool res = QDesktopServices::openUrl(url);
QMessageBox::information(0, url.toString(),
res ? "Success" : "Failure");
while the following works:
QUrl url = QUrl::fromLocalFile("c:/depot/testing/dir with space/test.html");
bool res = QDesktopServices::openUrl(url);
QMessageBox::information(0, url.toString(),
res ? "Success" : "Failure");
QUrl::fromLocalFile does not canonize the input, so the calling code should ensure that "." and ".." are resolved.