Ticket #5009: mythvideo-fix-dollarsign.diff

File mythvideo-fix-dollarsign.diff, 565 bytes (added by pat@…, 12 years ago)

Patch to add escaping of dollar signs in file names

  • mythvideo/mythvideo/metadata.cpp

     
    841841    QString handler = getPlayer(item);
    842842
    843843    QString esc_fname =
    844             QString(item->Filename()).replace(QRegExp("\""), "\\\"");
     844            QString(item->Filename())
     845                        .replace(QRegExp("\""), "\\\"")
     846                        .replace(QRegExp("\\$"),"\\$");
    845847    QString arg = QString("\"%1\"").arg(esc_fname);
    846848
    847849    QString command = "";