Bug 74485

Summary: File open preview shows error when accessing "file://name.html?1234"
Product: [Applications] konqueror Reporter: Jon Burgess <jburgess777>
Component: generalAssignee: Konqueror Developers <konq-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: RedHat Enterprise Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Screenshot showing error in preview pane

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);