Opened 12 years ago

Closed 12 years ago

#3883 closed defect (fixed)

mytharchive can not handle video files with back-ticks in their name

Reported by: Russell Mora <rd.mora@…> Owned by: paulh
Priority: trivial Milestone: 0.21
Component: mytharchive Version: head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

Hopefully the summary says it all - the fix is quite simple too:

Index: mytharchive/mythburn/scripts/mythburn.py =================================================================== --- mytharchive/mythburn/scripts/mythburn.py (revision 14309) +++ mytharchive/mythburn/scripts/mythburn.py (working copy) @@ -319,6 +319,7 @@

def quoteFilename(filename):

filename = filename.replace('"', '
"')

+ filename = filename.replace('', '\\')

return '"%s"' % filename

#############################################################

Change History (3)

comment:1 Changed 12 years ago by Russell Mora <rd.mora@…>

Oops, forgot this part of the patch:

Index: mytharchive/mytharchive/archiveutil.cpp
===================================================================
--- mytharchive/mytharchive/archiveutil.cpp     (revision 14309)
+++ mytharchive/mytharchive/archiveutil.cpp     (working copy)
@@ -203,6 +203,10 @@
         inFile = a->filename;
     }

+    inFile.replace("\'", "\\\'");
+    inFile.replace("\"", "\\\"");
+    inFile.replace("`", "\\`");
+
     QString outFile = tempDir + "/work/file.xml";

     // call mytharchivehelper to get files stream info etc.

comment:2 Changed 12 years ago by paulh

Milestone: unknown0.21

comment:3 Changed 12 years ago by paulh

Resolution: fixed
Status: newclosed

(In [14311]) In MythArchive? fix some places where quotes and back-ticks weren't being escaped properly in filenames.

Closes #3883.

Note: See TracTickets for help on using tickets.