OSDN Git Service

Disallow a few more special shell characters
authorDaniel Teske <daniel.teske@nokia.com>
Mon, 17 Oct 2011 15:36:53 +0000 (17:36 +0200)
committerDaniel Teske <daniel.teske@nokia.com>
Wed, 19 Oct 2011 11:30:47 +0000 (13:30 +0200)
qmake's quoting of them is broken, thus disallow them

Task-number: QTCREATORBUG-6025
Change-Id: I535f7c59865751bd878b245e4c29f83447b91cce
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
src/libs/utils/filenamevalidatinglineedit.cpp

index a3e83a0..fac7c3e 100644 (file)
@@ -90,8 +90,8 @@ void FileNameValidatingLineEdit::setAllowDirectories(bool v)
 #  define SLASHES "/"
 #endif
 
-static const char notAllowedCharsSubDir[]   = "~!?:&*\"|#%<> ";
-static const char notAllowedCharsNoSubDir[] = "~!?:&*\"|#%<> "SLASHES;
+static const char notAllowedCharsSubDir[]   = "~!?:&*\"|#%<>$\"'();`' ";
+static const char notAllowedCharsNoSubDir[] = "~!?:&*\"|#%<>$\"'();`' "SLASHES;
 
 static const char *notAllowedSubStrings[] = {".."};