Commit 2de830a5 authored by François Cartegnie's avatar François Cartegnie 🤞

Qt: escape demuxdump filename (refs #19841)

parent 22fed962
......@@ -178,10 +178,13 @@ void ConvertDialog::close()
for(int i = 0; i < incomingMRLs->length(); i++)
{
QString mrl;
QString newFileName;
if( dumpRadio->isChecked() )
{
mrl = "demux=dump :demuxdump-file=" + fileLine->text();
newFileName = fileLine->text();
newFileName.replace( QChar('\''), "\\\'" );
mrl = QString( "demux=dump :demuxdump-file='%1'" ).arg( newFileName );
}
else
{
......@@ -197,8 +200,6 @@ void ConvertDialog::close()
mrl += "duplicate{dst=display,dst=";
}
QString newFileName;
// Only one file, use the destination provided
if(singleFileSelected)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment