Bug 74485 - File open preview shows error when accessing "file://name.html?1234"
Summary: File open preview shows error when accessing "file://name.html?1234"
Status: RESOLVED FIXED
Alias: None
Product: konqueror
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: RedHat Enterprise Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-07 17:47 UTC by Jon Burgess
Modified: 2004-02-07 23:47 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshot showing error in preview pane (6.04 KB, image/png)
2004-02-07 17:54 UTC, Jon Burgess
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jon Burgess 2004-02-07 17:47:25 UTC
Version:            (using KDE KDE 3.2.0)
Installed from:    RedHat RPMs

I have archived off a web site using wget and have lots of HTML files with names like:

   file.shtml?12345

When using the file->open dialog, I can select a file like "test.shtml" and it displays fine in the preview pane. 

When I select "file.shtml?12345" I get an error in the preview pane saying "unable to acces file.shtml", something has lost the "?12345" part of the filename.

I will attach a screenshow showing the error.
Comment 1 Jon Burgess 2004-02-07 17:54:11 UTC
Created attachment 4566 [details]
Screenshot showing error in preview pane
Comment 2 Pascal Létourneau 2004-02-07 23:47:58 UTC
Subject: kdebase/kioslave/thumbnail

CVS commit by pletourn: 

Explicit KURL construction
CCMAIL:74485-done@bugs.kde.org


  M +4 -2      htmlcreator.cpp   1.11


--- kdebase/kioslave/thumbnail/htmlcreator.cpp  #1.10:1.11
@@ -61,5 +61,7 @@ bool HTMLCreator::create(const QString &
         m_html->setOnlyLocalReferences(true);
     }
-    m_html->openURL(path);
+    KURL url;
+    url.setPath(path);
+    m_html->openURL(url);
     m_completed = false;
     startTimer(5000);