From 104a14d18f99b05060a48ae7d9fbc0e96416c347 Mon Sep 17 00:00:00 2001
From: vbenincasa <vbenincasa@gmail.com>
Date: Sun, 20 Sep 2009 15:37:40 -0400
Subject: [PATCH] - Password plugin: fix vpopmaild driver
---
plugins/password/drivers/vpopmaild.php | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/plugins/password/drivers/vpopmaild.php b/plugins/password/drivers/vpopmaild.php
index b447340..db57eaf 100644
--- a/plugins/password/drivers/vpopmaild.php
+++ b/plugins/password/drivers/vpopmaild.php
@@ -29,6 +29,7 @@
$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 @@
$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 @@
$vpopmaild->writeLine("clear_text_password ". $passwd);
$vpopmaild->writeLine(".");
$result = $vpopmaild->readLine();
+ $vpopmaild->writeLine("quit");
$vpopmaild->disconnect();
if (!preg_match('/^\+OK/', $result))
return PASSWORD_ERROR;
--
Gitblit v1.9.1