[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE_3_3_BRANCH: kdelibs/kdecore
From: Oswald Buddenhagen <ossi () kde ! org>
Date: 2005-02-05 15:36:01
Message-ID: 20050205153601.B16011CF95 () office ! kde ! org
[Download RAW message or body]
CVS commit by ossi:
escape dollar-signs in writePathEntry
M +4 -1 kconfigbase.cpp 1.181.4.2
--- kdelibs/kdecore/kconfigbase.cpp #1.181.4.1:1.181.4.2
@@ -1062,5 +1062,5 @@ static bool cleanHomeDirPath( QString &p
// replace by "$HOME" if possible
if (path.length() == len || path[len] == '/') {
- path = path.replace(0, len, QString::fromLatin1("$HOME"));
+ path.replace(0, len, QString::fromLatin1("$HOME"));
return true;
} else
@@ -1073,4 +1073,7 @@ static QString translatePath( QString pa
return path;
+ // only "our" $HOME should be interpreted
+ path.replace('$', "$$");
+
bool startsWithFile = path.startsWith("file:", false);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic