summaryrefslogtreecommitdiff
path: root/src
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
commit337d56d4bb7d9176587884bb980d7e9c34e2ac06 (patch)
treeeab9a1a17af009aba2bbb02cc0d7d69883e75b03 /src
parentcc533d77e51f1416ffd41d3b36e4fc76a84c3185 (diff)
downloadopenttd-337d56d4bb7d9176587884bb980d7e9c34e2ac06.tar.xz
(svn r10272) -Fix (FS#916): remove more invalid characters from savegame names
Diffstat (limited to 'src')
-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;
}