summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorCarlos Manuel Duclos Vergara <carlos.duclos@nokia.com>2011-04-15 14:48:27 (GMT)
committerCarlos Manuel Duclos Vergara <carlos.duclos@nokia.com>2011-04-15 14:48:27 (GMT)
commitcec6c3ad52f6b4cdf04b70340ff7d15ebd8c7d26 (patch)
tree27619baeb45e78d316b426d93c6d4fee2d07cdf8 /src
parent4bcd23c4a9d5a596d0c90dbb1569385f30fadbac (diff)
downloadQt-cec6c3ad52f6b4cdf04b70340ff7d15ebd8c7d26.zip
Qt-cec6c3ad52f6b4cdf04b70340ff7d15ebd8c7d26.tar.gz
Qt-cec6c3ad52f6b4cdf04b70340ff7d15ebd8c7d26.tar.bz2
QDesktopServices::openUrl() doesn't handle URL encodings correctly
I think this is a problem with the USE_SCHEMEHANDLER version of handleUrl() in qt/src/gui/util/qdesktopservices_s60.cpp. It calls url.toString() which removes percent encoding. I think url.toEncoded() should be used instead. Task-number: QTBUG-18772 Reviewed-by: joao
Diffstat (limited to 'src')
-rw-r--r--src/gui/util/qdesktopservices_s60.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/util/qdesktopservices_s60.cpp b/src/gui/util/qdesktopservices_s60.cpp
index 96860df..8caeb74 100644
--- a/src/gui/util/qdesktopservices_s60.cpp
+++ b/src/gui/util/qdesktopservices_s60.cpp
@@ -314,7 +314,7 @@ static bool handleUrl(const QUrl &url)
if (!url.isValid())
return false;
- QString urlString(url.toString());
+ QString urlString(url.toEncoded());
TPtrC urlPtr(qt_QString2TPtrC(urlString));
TRAPD( err, handleUrlL(urlPtr));
return err ? false : true;