From 4eee1d0b523d0b28235629a2f2fa10072738316e Mon Sep 17 00:00:00 2001 From: "Andreas Burchert (scarya)" Date: Tue, 6 Dec 2011 16:04:35 +0100 Subject: [PATCH] Added check for froxlor-accounts <-> system-accounts, fixes #962 Thanks to d4f Signed-off-by: Andreas Burchert (scarya) --- admin_customers.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/admin_customers.php b/admin_customers.php index fefab671..ddeb72e8 100644 --- a/admin_customers.php +++ b/admin_customers.php @@ -625,6 +625,11 @@ if($page == 'customers' { standard_error('loginnameissystemaccount', $settings['customer']['accountprefix']); } + + //Additional filtering for Bug #962 + if(function_exists('posix_getpwuid') && !in_array("posix_getpwuid",explode(",",ini_get('disable_functions'))) && posix_getpwuid($loginname)) { + standard_error('loginnameissystemaccount', $settings['customer']['accountprefix']); + } } else {