forked from qt-creator/qt-creator
Wizards: blacklisting more characters for file names
Change-Id: Idddfe95eeee0df31c6737e11fe7b4b095b594111 Reviewed-by: Alessandro Portale <alessandro.portale@nokia.com>
This commit is contained in:
@@ -84,14 +84,11 @@ void FileNameValidatingLineEdit::setAllowDirectories(bool v)
|
|||||||
|
|
||||||
/* Validate a file base name, check for forbidden characters/strings. */
|
/* Validate a file base name, check for forbidden characters/strings. */
|
||||||
|
|
||||||
#ifdef Q_OS_WIN
|
|
||||||
# define SLASHES "/\\"
|
|
||||||
#else
|
|
||||||
# define SLASHES "/"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static const char notAllowedCharsSubDir[] = "={}[]~!?:&*\"|#%<>$\"'();`' ";
|
#define SLASHES "/\\"
|
||||||
static const char notAllowedCharsNoSubDir[] = "={}[]~!?:&*\"|#%<>$\"'();`' "SLASHES;
|
|
||||||
|
static const char notAllowedCharsSubDir[] = ",^@=+{}[]~!?:&*\"|#%<>$\"'();`' ";
|
||||||
|
static const char notAllowedCharsNoSubDir[] = ",^@=+{}[]~!?:&*\"|#%<>$\"'();`' "SLASHES;
|
||||||
|
|
||||||
static const char *notAllowedSubStrings[] = {".."};
|
static const char *notAllowedSubStrings[] = {".."};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user