Bug 140840 - Can't open URLs containing quotes on external browser
Summary: Can't open URLs containing quotes on external browser
Status: RESOLVED DUPLICATE of bug 171338
Alias: None
Product: akregator
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Mandriva RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-29 17:12 UTC by Eduardo Habkost
Modified: 2008-10-27 21:52 UTC (History)
1 user (show)

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 Eduardo Habkost 2007-01-29 17:12:29 UTC
Version:           1.2.5 (using KDE KDE 3.5.5)
Installed from:    Mandriva RPMs
OS:                FreeBSD

Akregator doesn't open an URL using the external browser command if it contains quote characters.

If the external command is configured as "my-command '%u'", the resulting command is "my-command 'http://example.com/foo'bar'", that is not splitted correctly into the command arguments by KShell::splitArgs.

If the command is configured as "my-command %u", it is expanded to "my-command http://example.com/foo'bar", that is also not split correctly by KShell::splitArgs.

A possible fix is splitting the command into separated arguments by KShell::splitArgs() before replacing "%u" with the URL, in Viewer::displayInExternalBrowser().
Comment 1 Frank Osterfeld 2008-10-27 21:52:41 UTC
Escaping is fixed in 4.1 branch (4.1.3) and trunk now

*** This bug has been marked as a duplicate of bug 171338 ***