summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qcorecmdlineargs_p.h
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@digia.com>2013-12-06 10:17:05 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-12-06 11:32:10 +0100
commit7cfe7c198224babeb06eac583e419bbd82c7217e (patch)
treefc7bf640049ea890458e40cddd765a5f4bf43499 /src/corelib/kernel/qcorecmdlineargs_p.h
parent835b8213905b315645bc60ff5f2ab99340d075a2 (diff)
Windows command line parsing: Do escape backslash.
This will break network paths passed as command line arguments. Introduced by 4ff6951550cb6e39c3b31895c3af57037e90c9ac . Task-number: QTBUG-35432 Task-number: QTBUG-30628 Change-Id: Ice9ce15275ef69e9e9e82daf5a303e7c56294368 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/corelib/kernel/qcorecmdlineargs_p.h')
-rw-r--r--src/corelib/kernel/qcorecmdlineargs_p.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/kernel/qcorecmdlineargs_p.h b/src/corelib/kernel/qcorecmdlineargs_p.h
index d1cfa2dfa9..bbbee7df25 100644
--- a/src/corelib/kernel/qcorecmdlineargs_p.h
+++ b/src/corelib/kernel/qcorecmdlineargs_p.h
@@ -101,8 +101,8 @@ static QVector<Char*> qWinCmdLine(Char *cmdParam, int length, int &argc)
}
}
if (*p == '\\') { // escape char?
- // testing by looking at argc, argv shows that it only escapes quotes and backslashes
- if (p < p_end && (*(p+1) == Char('\"') || *(p+1) == Char('\\')))
+ // testing by looking at argc, argv shows that it only escapes quotes
+ if (p < p_end && (*(p+1) == Char('\"')))
p++;
} else {
if (!quote && (*p == Char('\"'))) {