summaryrefslogtreecommitdiff
path: root/src/shared/proparser/profileparser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/proparser/profileparser.cpp')
-rw-r--r--src/shared/proparser/profileparser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/proparser/profileparser.cpp b/src/shared/proparser/profileparser.cpp
index 0fd6163200..977fa1bad1 100644
--- a/src/shared/proparser/profileparser.cpp
+++ b/src/shared/proparser/profileparser.cpp
@@ -422,7 +422,7 @@ bool ProFileParser::read(ProFile *pro, const QString &in)
} while (c == ' ' || c == '\t');
forever {
if (c == '$') {
- if (*cur == '$') { // may be EOF, EOL, WS or '#' if past end
+ if (*cur == '$') { // may be EOF, EOL, WS, '#' or '\\' if past end
cur++;
if (putSpace) {
putSpace = false;
@@ -541,7 +541,7 @@ bool ProFileParser::read(ProFile *pro, const QString &in)
xprPtr = ptr;
goto nextChr;
}
- } else if (c == '\\') {
+ } else if (c == '\\' && cur != end) {
static const char symbols[] = "[]{}()$\\'\"";
ushort c2 = *cur;
if (!(c2 & 0xff00) && strchr(symbols, c2)) {