From 4d2ff38f2b400d95609b7fbe45631933d9e82599 Mon Sep 17 00:00:00 2001 From: tokul Date: Tue, 19 Apr 2005 13:56:18 +0000 Subject: [PATCH] making sure that imap server variable does not contain mapping. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@9357 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- plugins/change_password/backend/poppassd.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/plugins/change_password/backend/poppassd.php b/plugins/change_password/backend/poppassd.php index 280238b0..1112ccc7 100644 --- a/plugins/change_password/backend/poppassd.php +++ b/plugins/change_password/backend/poppassd.php @@ -84,8 +84,15 @@ function cpw_poppassd_go($username, $old_pw, $new_pw, $debug = 0) { global $poppassd_server; global $imapServerAddress; + /** @ignore */ + if (!defined('SM_PATH')) define('SM_PATH','../../../'); + /** sqimap_get_user_server() function */ + include_once(SM_PATH . 'functions/imap_general.php'); + if($poppassd_server == '') { - $poppassd_server = $imapServerAddress; + // if poppassd address is not set, use imap server's address + // make sure that setting contains address and not mapping + $poppassd_server = sqimap_get_user_server($imapServerAddress,$username); } $messages = array(); -- 2.25.1