Ticket #9655: hasfragment_v1.diff

File hasfragment_v1.diff, 944 bytes (added by greg, 10 years ago)

Fix for # in a myth URL

  • mythtv/programs/mythbackend/mainserver.cpp

    diff --git a/mythtv/programs/mythbackend/mainserver.cpp b/mythtv/programs/mythbackend/mainserver.cpp
    index 77d34cf..c2ec425 100644
    a b void MainServer::HandleAnnounce(QStringList &slist, QStringList commands, 
    14211421            }
    14221422
    14231423            QString basename = qurl.path();
     1424            if (qurl.hasFragment())
     1425                basename += "#" + qurl.fragment();
     1426
    14241427            if (basename.isEmpty())
    14251428            {
    14261429                VERBOSE(VB_IMPORTANT, QString("ERROR: FileTransfer write "
    QString MainServer::LocalFilePath(const QUrl &url, const QString &wantgroup) 
    57995802{
    58005803    QString lpath = url.path();
    58015804
     5805    if (url.hasFragment())
     5806        lpath += "#" + url.fragment();
     5807
    58025808    if (lpath.section('/', -2, -2) == "channels")
    58035809    {
    58045810        // This must be an icon request. Check channel.icon to be safe.