Ticket #11905: mythtv.patch

File mythtv.patch, 1.1 KB (added by dev-team@…, 11 years ago)
  • libs/libmythupnp/httprequest.cpp

    diff --git libs/libmythupnp/httprequest.cpp libs/libmythupnp/httprequest.cpp
    index 929306c..0def7e0 100644
     
    945945            QString sName  = (*it).section( '=', 0, 0 );
    946946            QString sValue = (*it).section( '=', 1 );
    947947            sValue.replace("+"," ");
    948 
    949948            if ((sName.length() != 0) && (sValue.length() !=0))
    950949            {
    951950                sName  = QUrl::fromPercentEncoding(sName.toUtf8());
    952951                sValue = QUrl::fromPercentEncoding(sValue.toUtf8());
    953 
    954952                mapParams.insert( sName.trimmed(), sValue );
    955953                nCount++;
    956954            }
     
    12141212            m_sResourceUrl = m_sBaseUrl; // Save complete url without parameters
    12151213
    12161214            // Process any Query String Parameters
    1217             QString sQueryStr = (QUrl::fromPercentEncoding(tokens[1].toUtf8()))
    1218                                      .section( '?', 1, 1 );
     1215            QString sQueryStr = tokens[1].section( '?', 1, 1 );
    12191216
    12201217            if (sQueryStr.length() > 0)
    12211218                GetParameters( sQueryStr, m_mapParams );