aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/ini-file.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/ini-file.cpp b/common/ini-file.cpp
index 7e5a098b4e..1bf0a0eec6 100644
--- a/common/ini-file.cpp
+++ b/common/ini-file.cpp
@@ -30,7 +30,7 @@ namespace Common {
bool INIFile::isValidName(const String &name) {
const char *p = name.c_str();
- while (*p && (isAlnum(*p) || *p == '-' || *p == '_' || *p == '.'))
+ while (*p && (isAlnum(*p) || *p == '-' || *p == '_' || *p == '.' || *p == ' '))
p++;
return *p == 0;
}
@@ -108,7 +108,7 @@ bool INIFile::loadFromStream(SeekableReadStream &stream) {
// is, verify that it only consists of alphanumerics,
// periods, dashes and underscores). Mohawk Living Books games
// can have periods in their section names.
- while (*p && (isAlnum(*p) || *p == '-' || *p == '_' || *p == '.'))
+ while (*p && (isAlnum(*p) || *p == '-' || *p == '_' || *p == '.' || *p == ' '))
p++;
if (*p == '\0')