Skip to content

Commit

Permalink
This patch fixes #9655 by trying to properly handle filenames with a …
Browse files Browse the repository at this point in the history
…'#' in them.
  • Loading branch information
GreyFoxx committed Jun 2, 2011
1 parent 708f5c8 commit e801178
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mythtv/programs/mythbackend/mainserver.cpp
Expand Up @@ -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 "
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit e801178

Please sign in to comment.