From 104a14d18f99b05060a48ae7d9fbc0e96416c347 Mon Sep 17 00:00:00 2001 From: vbenincasa Date: Sun, 20 Sep 2009 19:37:40 +0000 Subject: - Password plugin: fix vpopmaild driver --- plugins/password/drivers/vpopmaild.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugins/password/drivers/vpopmaild.php') diff --git a/plugins/password/drivers/vpopmaild.php b/plugins/password/drivers/vpopmaild.php index b44734036..db57eaf70 100644 --- a/plugins/password/drivers/vpopmaild.php +++ b/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