Bug 116527 - relative url in link isn't imported properly
Summary: relative url in link isn't imported properly
Status: RESOLVED FIXED
Alias: None
Product: akregator
Classification: Applications
Component: akregator konqueror plugin (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-16 23:02 UTC by Mirko Stocker
Modified: 2006-01-25 22:52 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mirko Stocker 2005-11-16 23:02:42 UTC
Version:           revision 480867 (using KDE KDE 3.5.0)
Installed from:    Compiled From Sources

When I import a feed which is announced as a relative url, an invalid url gets imported into akregator. For example: <link rel="alternate" type="application/rdf+xml" title="recent changes RSS" href="rss.cgi"> from the website http://wiki.ita.hsr.ch/PnProg/changes.cgi is imported as http://wiki.ita.hsr.ch/PnProg/changes.cgi/rss.cgi instead of http://wiki.ita.hsr.ch/PnProg/rss.cgi

I've created a patch, in fact it's quite simple:

===================================================================
--- pluginbase.cpp      (revision 480867)
+++ pluginbase.cpp      (working copy)
@@ -89,7 +89,7 @@
         else
         {
             u=baseurl;
-            u.addPath(s2);
+            u.setFileName(s2);
         }
         u.cleanPath();
     }
===================================================================

I hope it doesn't create any further problems. If it gets accepted, this would be my first contribution to an opensource project :)
Comment 1 Frank Osterfeld 2006-01-25 22:52:55 UTC
This was fixed in the meantime by using KURL(baseurl, url) for resolving relative links. Closing.