summaryrefslogtreecommitdiffstats
path: root/src/ldapbonding.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-07-08 23:50:34 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-07-08 23:50:34 -0500
commit96c0a54f74f1ab9f284db7d5e5ee0c7a6f341fa0 (patch)
treee049b684b2c49149b889ba22a0d7817a69e34684 /src/ldapbonding.cpp
parent3d34730e2167f92131bafd4ea8e30c0183f16788 (diff)
downloadkcmldap-96c0a54f74f1ab9f284db7d5e5ee0c7a6f341fa0.tar.gz
kcmldap-96c0a54f74f1ab9f284db7d5e5ee0c7a6f341fa0.zip
Second part of prior commit
Diffstat (limited to 'src/ldapbonding.cpp')
-rw-r--r--src/ldapbonding.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ldapbonding.cpp b/src/ldapbonding.cpp
index f523f88..45ad4ba 100644
--- a/src/ldapbonding.cpp
+++ b/src/ldapbonding.cpp
@@ -392,10 +392,12 @@ void LDAPConfig::deactivateRealm() {
TQString readFullLineFromPtyProcess(PtyProcess* proc) {
TQString result = "";
- while ((!result.contains("\n")) && (!result.contains(":")) && (!result.contains(">"))) {
+ while ((!result.contains("\r")) && (!result.contains(":")) && (!result.contains(">"))) {
result = result + TQString(proc->readLine(false));
tqApp->processEvents();
}
+ result.replace("\n", "");
+ result.replace("\r", "");
return result;
}