Ticket #5743: upnp-cds-key-bugfix.diff

File upnp-cds-key-bugfix.diff, 824 bytes (added by Xavier Hervy <xavier.hervy@…>, 18 years ago)
  • upnpcds.cpp

     
    917917    //
    918918    // ----------------------------------------------------------------------
    919919   
    920     QString sKey = idPath.last().section( '=', 1, 1 );
     920    QString sKey = idPath.last().section( '=', 1);
    921921    sKey = QUrl::fromPercentEncoding(sKey.toLatin1());
    922922
    923923    if (sKey.length() > 0)
     
    10671067                    while(query.next())
    10681068                    {
    10691069                        QString sKey   = query.value(0).toString();
     1070                        sKey = QUrl::toPercentEncoding(sKey.toLatin1());
    10701071                        QString sTitle = query.value(1).toString();
    10711072                        long    nCount = query.value(2).toInt();
    10721073