Commit 2cd16db6 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

Wizards: blacklisting more characters for file names




Change-Id: Idddfe95eeee0df31c6737e11fe7b4b095b594111
Reviewed-by: default avatarAlessandro Portale <alessandro.portale@nokia.com>
parent dc49fdd5
......@@ -84,14 +84,11 @@ void FileNameValidatingLineEdit::setAllowDirectories(bool v)
/* Validate a file base name, check for forbidden characters/strings. */
#ifdef Q_OS_WIN
# define SLASHES "/\\"
#else
# define SLASHES "/"
#endif
static const char notAllowedCharsSubDir[] = "={}[]~!?:&*\"|#%<>$\"'();`' ";
static const char notAllowedCharsNoSubDir[] = "={}[]~!?:&*\"|#%<>$\"'();`' "SLASHES;
#define SLASHES "/\\"
static const char notAllowedCharsSubDir[] = ",^@=+{}[]~!?:&*\"|#%<>$\"'();`' ";
static const char notAllowedCharsNoSubDir[] = ",^@=+{}[]~!?:&*\"|#%<>$\"'();`' "SLASHES;
static const char *notAllowedSubStrings[] = {".."};
......
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