From 4309299f6fc6e10eb45254735bbc56ea089a3ed5 Mon Sep 17 00:00:00 2001 From: Daniel Teske Date: Mon, 17 Oct 2011 17:36:53 +0200 Subject: [PATCH] Disallow a few more special shell characters qmake's quoting of them is broken, thus disallow them Task-number: QTCREATORBUG-6025 Change-Id: I535f7c59865751bd878b245e4c29f83447b91cce Reviewed-by: Friedemann Kleint --- src/libs/utils/filenamevalidatinglineedit.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/utils/filenamevalidatinglineedit.cpp b/src/libs/utils/filenamevalidatinglineedit.cpp index a3e83a0594..fac7c3eb3b 100644 --- a/src/libs/utils/filenamevalidatinglineedit.cpp +++ b/src/libs/utils/filenamevalidatinglineedit.cpp @@ -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[] = {".."}; -- 2.11.0