Force domains to lower case
This commit is contained in:
parent
0f079a5b34
commit
10b035482b
|
|
@ -44,8 +44,8 @@ else {
|
||||||
}
|
}
|
||||||
|
|
||||||
//get http post variables and set them to php variables
|
//get http post variables and set them to php variables
|
||||||
if (count($_POST)>0) {
|
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"]);
|
$domain_description = check_str($_POST["domain_description"]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -144,7 +144,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
|
||||||
$prep_statement->execute();
|
$prep_statement->execute();
|
||||||
$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
|
$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
|
||||||
foreach ($result as &$row) {
|
foreach ($result as &$row) {
|
||||||
$domain_name = $row["domain_name"];
|
$domain_name = strtolower($row["domain_name"]);
|
||||||
$domain_description = $row["domain_description"];
|
$domain_description = $row["domain_description"];
|
||||||
}
|
}
|
||||||
unset ($prep_statement);
|
unset ($prep_statement);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue