Skip to content
Permalink
Browse files

This patch fixes #9655 by trying to properly handle filenames with a …

…'#' in them.
  • Loading branch information...
GreyFoxx committed Jun 2, 2011
1 parent 708f5c8 commit e801178eb85018819a890d88b7761cc3d10544f1
Showing with 6 additions and 0 deletions.
  1. +6 −0 mythtv/programs/mythbackend/mainserver.cpp
@@ -1420,6 +1420,9 @@ void MainServer::HandleAnnounce(QStringList &slist, QStringList commands,
}

QString basename = qurl.path();
if (qurl.hasFragment())
basename += "#" + qurl.fragment();

if (basename.isEmpty())
{
VERBOSE(VB_IMPORTANT, QString("ERROR: FileTransfer write "
@@ -5795,6 +5798,9 @@ QString MainServer::LocalFilePath(const QUrl &url, const QString &wantgroup)
{
QString lpath = url.path();

if (url.hasFragment())
lpath += "#" + url.fragment();

if (lpath.section('/', -2, -2) == "channels")
{
// This must be an icon request. Check channel.icon to be safe.

0 comments on commit e801178

Please sign in to comment.
You can’t perform that action at this time.