Skip to content

Commit 5154786

Browse files
committed
strtolower() domain name convertion
1 parent c04b47d commit 5154786

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

web/add/dns/index.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
// Protect input
2121
$v_domain = preg_replace("/^www./i", "", $_POST['v_domain']);
2222
$v_domain = escapeshellarg($v_domain);
23+
$v_domain = strtolower($v_domain);
2324
$v_ip = escapeshellarg($_POST['v_ip']);
2425

2526
if (!empty($_POST['v_ns1'])) $v_ns1 = escapeshellarg($_POST['v_ns1']);

web/add/mail/index.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
// Protect input
3939
$v_domain = preg_replace("/^www./i", "", $_POST['v_domain']);
4040
$v_domain = escapeshellarg($v_domain);
41+
$v_domain = strtolower($v_domain);
4142

4243
// Check for errors
4344
if (!empty($errors[0])) {
@@ -77,6 +78,7 @@
7778

7879
// Protect input
7980
$v_domain = escapeshellarg($_POST['v_domain']);
81+
$v_domain = strtolower($v_domain);
8082
$v_account = escapeshellarg($_POST['v_account']);
8183
$v_password = escapeshellarg($_POST['v_password']);
8284
$v_quota = escapeshellarg($_POST['v_quota']);

web/add/web/index.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
// Protect input
3737
$v_domain = preg_replace("/^www./i", "", $_POST['v_domain']);
3838
$v_domain = escapeshellarg($v_domain);
39+
$v_domain = strtolower($v_domain);
3940
$v_ip = escapeshellarg($_POST['v_ip']);
4041
if (empty($_POST['v_dns'])) $v_dns = 'off';
4142
if (empty($_POST['v_mail'])) $v_mail = 'off';

0 commit comments

Comments
 (0)