[mythtv] [PATCH] mythnews

Matt Zimmerman mdz at debian.org
Sat Jul 24 19:12:22 EDT 2004

On Sun, Jul 18, 2004 at 11:20:51PM +0200, Dick Smits wrote:

> When processing RSS feeds with mythnews I sometimes get a URL in the feed
> that contains the characters
> ";" or "&". When you press the ENTER button mythbrowser is called to display
> the newsarticle.
> The does not work when these characters are present in the URL.
> The myth_system call used for this needs the escaped string (a la shell).
> Example myth_system argument from nu.nl:
> /usr/bin/mythbrowser -z 115 http://nu.nl/news.jsp?n=360482&c=61
> This should be:
> /usr/bin/mythbrowser -z 115 http://nu\.nl/news\.jsp\?n=360482\&amp\;c=61
> This patch adds that to mythnews.cpp.
> I'm not a c++ and/or QT coder, so the patch may be not the best solution.

I replaced this with a simpler version which does this instead:

            QString cmdUrl(article->articleURL());
            cmdUrl.replace('\'', "%27");

            QString cmd = QString("%1 %2 '%3'")

 - mdz

More information about the mythtv-dev mailing list