[mythtv-commits] Ticket #3883: mytharchive can not handle video files with back-ticks in their name
MythTV
mythtv at cvs.mythtv.org
Sun Aug 26 16:38:00 UTC 2007
#3883: mytharchive can not handle video files with back-ticks in their name
----------------------------------------------+-----------------------------
Reporter: Russell Mora <rd.mora at gmail.com> | Owner: paulh
Type: defect | Status: new
Priority: trivial | Milestone: unknown
Component: mytharchive | Version: head
Severity: medium | Resolution:
Mlocked: 0 |
----------------------------------------------+-----------------------------
Comment(by Russell Mora <rd.mora at gmail.com>):
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.
}}}
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/3883#comment:1>
MythTV <http://svn.mythtv.org/trac>
MythTV
More information about the mythtv-commits
mailing list