Commit defde1c8 authored by Antoine Cellerier's avatar Antoine Cellerier

* Fix forbiden windows characters list. (in fact it's not windows only, but...

 * Fix forbiden windows characters list. (in fact it's not windows only, but fat32/ntfs ... but noone cares)
parent 5d03d245
...@@ -804,15 +804,14 @@ void filename_sanitize( char *str ) ...@@ -804,15 +804,14 @@ void filename_sanitize( char *str )
{ {
case '/': case '/':
#ifdef WIN32 #ifdef WIN32
case '\\':
case '*': case '*':
case '"': case '"':
case '\\': case "?":
case '[':
case ']':
case ':': case ':':
case ';':
case '|': case '|':
case '=': case '<':
case '>'
#endif #endif
*str = '_'; *str = '_';
} }
...@@ -825,22 +824,21 @@ void filename_sanitize( char *str ) ...@@ -825,22 +824,21 @@ void filename_sanitize( char *str )
*/ */
void path_sanitize( char *str ) void path_sanitize( char *str )
{ {
#ifdef WIN32
while( *str ) while( *str )
{ {
switch( *str ) switch( *str )
{ {
#ifdef WIN32
case '*': case '*':
case '"': case '"':
case '[': case "?":
case ']':
case ':': case ':':
case ';':
case '|': case '|':
case '=': case '<':
#endif case '>'
*str = '_'; *str = '_';
} }
str++; str++;
} }
#endif
} }
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