summaryrefslogtreecommitdiff
path: root/roundcubemail/plugins
diff options
context:
space:
mode:
authornetbit <netbit@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-09-20 19:37:40 +0000
committernetbit <netbit@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-09-20 19:37:40 +0000
commit6e6996616aae07bc22858cc7e83e70f593fa3824 (patch)
tree96c1526af5e4261e131787de899e1c32e9b6fe7e /roundcubemail/plugins
parentdcf634cf5ad6e75ad3c7df15bc071f5151d2417a (diff)
- Password plugin: fix vpopmaild driver
git-svn-id: https://svn.roundcube.net/trunk@2975 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/plugins')
-rw-r--r--roundcubemail/plugins/password/drivers/vpopmaild.php3
1 files changed, 3 insertions, 0 deletions
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;