From 10b035482b37ca9bd92b3bb607b5d62d943695b8 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Wed, 24 Oct 2012 03:43:15 +0000 Subject: [PATCH] Force domains to lower case --- core/domains/domains_edit.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/domains/domains_edit.php b/core/domains/domains_edit.php index 6dded99416..6e64faf6e0 100644 --- a/core/domains/domains_edit.php +++ b/core/domains/domains_edit.php @@ -44,8 +44,8 @@ else { } //get http post variables and set them to php variables - if (count($_POST)>0) { - $domain_name = check_str($_POST["domain_name"]); + if (count($_POST) > 0) { + $domain_name = strtolower(check_str($_POST["domain_name"])); $domain_description = check_str($_POST["domain_description"]); } @@ -144,7 +144,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { $prep_statement->execute(); $result = $prep_statement->fetchAll(PDO::FETCH_NAMED); foreach ($result as &$row) { - $domain_name = $row["domain_name"]; + $domain_name = strtolower($row["domain_name"]); $domain_description = $row["domain_description"]; } unset ($prep_statement);