summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2007-06-22 19:30:59 +0000
committerglx <glx@openttd.org>2007-06-22 19:30:59 +0000
commitad41b2dbd41453d07303dfa925e6af6698ea391e (patch)
treeeab9a1a17af009aba2bbb02cc0d7d69883e75b03
parent28a006ec1f19e2ec05956999f189039cdeba88d0 (diff)
downloadopenttd-ad41b2dbd41453d07303dfa925e6af6698ea391e.tar.xz
(svn r10272) -Fix (FS#916): remove more invalid characters from savegame names
-rw-r--r--src/fileio.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fileio.cpp b/src/fileio.cpp
index 2b37dabf2..57affe1fd 100644
--- a/src/fileio.cpp
+++ b/src/fileio.cpp
@@ -532,6 +532,7 @@ void SanitizeFilename(char *filename)
/* The following characters are not allowed in filenames
* on at least one of the supported operating systems: */
case ':': case '\\': case '*': case '?': case '/':
+ case '<': case '>': case '|': case '"':
*filename = '_';
break;
}