diff --git a/mainwindow.cc b/mainwindow.cc index 22487a69..fdea2925 100644 --- a/mainwindow.cc +++ b/mainwindow.cc @@ -3528,7 +3528,7 @@ static void filterAndCollectResources( QString & html, QRegExp & rx, const QStri { QUrl url( rx.cap( 1 ) ); QString host = url.host(); - QString resourcePath = QString::fromLatin1( QUrl::toPercentEncoding( Qt4x5::Url::path( url ), "/" ) ); + QString resourcePath = Qt4x5::Url::path( url ); if ( !host.startsWith( '/' ) ) host.insert( 0, '/' ); @@ -3545,6 +3545,7 @@ static void filterAndCollectResources( QString & html, QRegExp & rx, const QStri } // Modify original url, set to the native one + resourcePath = QString::fromLatin1( QUrl::toPercentEncoding( resourcePath, "/" ) ); QString newUrl = sep + QDir( folder ).dirName() + host + resourcePath + sep; html.replace( pos, rx.cap().length(), newUrl ); pos += newUrl.length();