edit-vacation:

- db_log vacation changes

Known bug: enabling vacation causes two log entries if the user used 
vacation before. Better than not logging vacation changes at all.

trunk already has a different fix - it uses VacationHandler which does
indirect logging via AliasHandler.


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/branches/postfixadmin-2.3@987 a1433add-5e2c-0410-b055-b7f2511e0802
postfixadmin-2.3
Christian Boltz 13 years ago
parent 386ca66f88
commit 4b7e59b662

@ -25,6 +25,7 @@ Version 2.3.3 - 2011/**/** - SVN r*** (postfixadmin-2.3 branch)
to bigint to allow mailboxes >4 GB (run setup.php to upgrade your database)
- vacation.pl logged literal $variable instead of the variable content at two
places
- edit-vacation: log enabling/disabling vacation if done by admins
- POSTFIX_CONF.txt: fixed filename for quota map
- config.inc.php: removed double $CONF['database_prefix']
- config.inc.php: fixed comments about domain_post* script parameters

@ -55,6 +55,7 @@ else {
$fUsername = $SESSID_USERNAME;
$fDomain = $USERID_DOMAIN;
}
list (/*NULL*/, $domain) = explode('@', $fUsername);
$vacation_domain = $CONF['vacation_domain'];
$vacation_goto = preg_replace('/@/', '#', $fUsername);
@ -140,6 +141,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST")
{
$error = 1;
}
db_log($SESSID_USERNAME, $domain, 'edit_alias', "$fUsername -> $goto");
}
}
}
@ -184,6 +186,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST")
{
$error = 1;
}
db_log($SESSID_USERNAME, $domain, 'edit_alias', "$fUsername -> $goto");
}
}

Loading…
Cancel
Save