Force domains to lower case

This commit is contained in:
Mark Crane 2012-10-24 03:43:15 +00:00
parent 0f079a5b34
commit 10b035482b
1 changed files with 3 additions and 3 deletions

View File

@ -45,7 +45,7 @@ else {
//get http post variables and set them to php variables
if (count($_POST) > 0) {
$domain_name = check_str($_POST["domain_name"]);
$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);