mirror of https://github.com/OpenTTD/OpenTTD
(svn r10272) -Fix (FS#916): remove more invalid characters from savegame names
parent
cc533d77e5
commit
337d56d4bb
|
@ -532,6 +532,7 @@ void SanitizeFilename(char *filename)
|
||||||
/* The following characters are not allowed in filenames
|
/* The following characters are not allowed in filenames
|
||||||
* on at least one of the supported operating systems: */
|
* on at least one of the supported operating systems: */
|
||||||
case ':': case '\\': case '*': case '?': case '/':
|
case ':': case '\\': case '*': case '?': case '/':
|
||||||
|
case '<': case '>': case '|': case '"':
|
||||||
*filename = '_';
|
*filename = '_';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue