diff options
-rw-r--r-- | src/ldapbonding.cpp | 4 |
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; } |