Commit a289d8b1 authored by Rick W. Chen's avatar Rick W. Chen
Browse files

Make sure url is encoded when converting wikipedia click urls

CCBUG: 268476
parent 096d1736
......@@ -143,7 +143,7 @@ WikipediaEnginePrivate::_dataContainerUpdated( const QString &source, const Plas
wikiCurrentUrl = clickUrl;
if( !wikiCurrentUrl.hasQueryItem( QLatin1String("useskin") ) )
wikiCurrentUrl.addQueryItem( QLatin1String("useskin"), QLatin1String("monobook") );
KUrl encodedUrl( wikiCurrentUrl.toString() );
KUrl encodedUrl( wikiCurrentUrl.toEncoded() );
urls << encodedUrl;
q->setData( source, QLatin1String("busy"), true );
The::networkAccessManager()->getData( encodedUrl, q,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment