From 4714a458fef1fffe752d344f09558e22ac6326ff Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Wed, 28 Jan 2015 21:55:46 +0100 Subject: [PATCH] don't allow a customer to add the froxlor-hostname as subdomain in case the froxlor-hostname is sub.dom.tld and the customer has dom.tld assigned, thx to chrisalexthomas for 'finding' this :) Signed-off-by: Michael Kaufmann (d00p) --- customer_domains.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/customer_domains.php b/customer_domains.php index 5d20412d..8b139832 100644 --- a/customer_domains.php +++ b/customer_domains.php @@ -230,6 +230,12 @@ if ($page == 'overview') { $domain_check = Database::pexecute_first($domain_stmt, array("domain" => $domain, "customerid" => $userinfo['customerid'])); $completedomain = $subdomain . '.' . $domain; + + if ($completedomain == Settings::Get('system.hostname')) { + standard_error('admin_domain_emailsystemhostname'); + exit; + } + $completedomain_stmt = Database::prepare("SELECT * FROM `" . TABLE_PANEL_DOMAINS . "` WHERE `domain` = :domain AND `customerid` = :customerid