]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
dvr: remove legal character ' from unsafe/windows compatible filenames list
authorBen Fennema <fennema@google.com>
Mon, 25 May 2015 21:28:35 +0000 (14:28 -0700)
committerJaroslav Kysela <perex@perex.cz>
Thu, 28 May 2015 12:18:23 +0000 (14:18 +0200)
docs/html/config_dvr.html
src/dvr/dvr_rec.c

index f0a27403a58fc8db2fd4e123220e83629eeba5e9..72a1c64e38a03e41e67e545031ab06e1a432c59c 100644 (file)
   <dt>Remove all unsafe characters from filename
   <dd>If checked, all characters that could possibly cause problems for filenaming will be replaced with '_'.<br>
          Applies to characters:<br>
-      * not supported by Windows characters: <i>/ : \ < > | * ? "</i><br>
+      * not supported by Windows characters: <i>/ : \ < > | * ? "</i><br>
       * control characters (ASCII code below 32)<br>
       * control and national characters (ASCII code above 122)<br> 
   
   
   <dt>Use Windows-compatible filenames
   <dd>If checked:<br>
-      * special characters not supported by Windows like: <i>/ : \ < > | * ? "</i> will be replaced with '_'<br>
+      * special characters not supported by Windows like: <i>/ : \ < > | * ? "</i> will be replaced with '_'<br>
       * trailing spaces ' ' and dots '.' will be removed
   
  </dl>
index 70e5aea6518b9711bf2c3b4006248716c7aa6bc3..09aed48c3166fa37028280d58da17ee80372355d 100644 (file)
@@ -198,11 +198,11 @@ cleanup_filename(dvr_config_t *cfg, char *s)
 
     else if (cfg->dvr_clean_title &&
              ((*s < 32) || (*s > 122) ||
-             (strchr("/:\\<>|*?'\"", *s) != NULL)))
+             (strchr("/:\\<>|*?\"", *s) != NULL)))
       *s = '_';
 
     else if (cfg->dvr_windows_compatible_filenames &&
-             (strchr("/:\\<>|*?'\"", *s) != NULL))
+             (strchr("/:\\<>|*?\"", *s) != NULL))
       *s = '_';
   }