Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
dvr: remove legal character ' from unsafe/windows compatible filename…
…s list
  • Loading branch information
bfennema authored and perexg committed May 28, 2015
1 parent 268e762 commit 779874c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/html/config_dvr.html
Expand Up @@ -207,7 +207,7 @@
<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>

Expand All @@ -216,7 +216,7 @@

<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>
Expand Down
4 changes: 2 additions & 2 deletions src/dvr/dvr_rec.c
Expand Up @@ -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 = '_';
}

Expand Down

0 comments on commit 779874c

Please sign in to comment.