summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;
}