Stable team/Jon: can I commit this into stable aswell?
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@9603
7612ce4b-ef26-0410-bec9-
ea0150e637f0
Thanks to Roalt Zijlstra.
- Identity code was not checking for domain part in username before setting
email address (Bug #1219184).
+ - Disallow access to the administrator plugin screens when the plugin is
+ not enabled in the config.
Version 1.5.0 - 2 February 2004
* @return boolean
*/
function adm_check_user() {
- global $PHP_SELF;
+ global $PHP_SELF, $plugins;
require_once(SM_PATH . 'functions/global.php');
+ /* fail if the plugin is not enabled */
+ if ( !in_array('administrator', $plugins) ) {
+ return FALSE;
+ }
+
if ( !sqgetGlobalVar('username',$username,SQ_SESSION) ) {
$username = '';
}
function adm_array_trim(&$value,$key) {
$value=trim($value);
}
-?>
\ No newline at end of file
+?>