From 6e6996616aae07bc22858cc7e83e70f593fa3824 Mon Sep 17 00:00:00 2001 From: netbit Date: Sun, 20 Sep 2009 19:37:40 +0000 Subject: - Password plugin: fix vpopmaild driver git-svn-id: https://svn.roundcube.net/trunk@2975 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/plugins/password/drivers/vpopmaild.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roundcubemail/plugins/password/drivers/vpopmaild.php b/roundcubemail/plugins/password/drivers/vpopmaild.php index b44734036..db57eaf70 100644 --- a/roundcubemail/plugins/password/drivers/vpopmaild.php +++ b/roundcubemail/plugins/password/drivers/vpopmaild.php @@ -29,6 +29,7 @@ function password_save($curpass, $passwd) $vpopmaild->writeLine("slogin ". $_SESSION['username'] . " " . $curpass); $result = $vpopmaild->readLine(); if(!preg_match('/^\+OK/', $result) ) { + $vpopmaild->writeLine("quit"); $vpopmaild->disconnect(); return PASSWORD_ERROR; } @@ -36,6 +37,7 @@ function password_save($curpass, $passwd) $vpopmaild->writeLine("mod_user ". $_SESSION['username']); $result = $vpopmaild->readLine(); if(!preg_match('/^\+OK/', $result) ) { + $vpopmaild->writeLine("quit"); $vpopmaild->disconnect(); return PASSWORD_ERROR; } @@ -43,6 +45,7 @@ function password_save($curpass, $passwd) $vpopmaild->writeLine("clear_text_password ". $passwd); $vpopmaild->writeLine("."); $result = $vpopmaild->readLine(); + $vpopmaild->writeLine("quit"); $vpopmaild->disconnect(); if (!preg_match('/^\+OK/', $result)) return PASSWORD_ERROR; -- cgit v1.2.3