Bug 140840

Summary: Can't open URLs containing quotes on external browser
Product: [Applications] akregator Reporter: Eduardo Habkost <ehabkost>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: osterfeld
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Mandriva RPMs   
OS: Linux   
Latest Commit: Version Fixed In:

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 ***