mirror of
https://github.com/myvesta/vesta
synced 2025-07-11 23:56:45 -07:00
strtolower() domain name convertion
This commit is contained in:
parent
c04b47d5df
commit
51547867e7
3 changed files with 4 additions and 0 deletions
|
@ -20,6 +20,7 @@ if (!empty($_POST['ok'])) {
|
||||||
// Protect input
|
// Protect input
|
||||||
$v_domain = preg_replace("/^www./i", "", $_POST['v_domain']);
|
$v_domain = preg_replace("/^www./i", "", $_POST['v_domain']);
|
||||||
$v_domain = escapeshellarg($v_domain);
|
$v_domain = escapeshellarg($v_domain);
|
||||||
|
$v_domain = strtolower($v_domain);
|
||||||
$v_ip = escapeshellarg($_POST['v_ip']);
|
$v_ip = escapeshellarg($_POST['v_ip']);
|
||||||
|
|
||||||
if (!empty($_POST['v_ns1'])) $v_ns1 = escapeshellarg($_POST['v_ns1']);
|
if (!empty($_POST['v_ns1'])) $v_ns1 = escapeshellarg($_POST['v_ns1']);
|
||||||
|
|
|
@ -38,6 +38,7 @@ top_panel($user,$TAB);
|
||||||
// Protect input
|
// Protect input
|
||||||
$v_domain = preg_replace("/^www./i", "", $_POST['v_domain']);
|
$v_domain = preg_replace("/^www./i", "", $_POST['v_domain']);
|
||||||
$v_domain = escapeshellarg($v_domain);
|
$v_domain = escapeshellarg($v_domain);
|
||||||
|
$v_domain = strtolower($v_domain);
|
||||||
|
|
||||||
// Check for errors
|
// Check for errors
|
||||||
if (!empty($errors[0])) {
|
if (!empty($errors[0])) {
|
||||||
|
@ -77,6 +78,7 @@ top_panel($user,$TAB);
|
||||||
|
|
||||||
// Protect input
|
// Protect input
|
||||||
$v_domain = escapeshellarg($_POST['v_domain']);
|
$v_domain = escapeshellarg($_POST['v_domain']);
|
||||||
|
$v_domain = strtolower($v_domain);
|
||||||
$v_account = escapeshellarg($_POST['v_account']);
|
$v_account = escapeshellarg($_POST['v_account']);
|
||||||
$v_password = escapeshellarg($_POST['v_password']);
|
$v_password = escapeshellarg($_POST['v_password']);
|
||||||
$v_quota = escapeshellarg($_POST['v_quota']);
|
$v_quota = escapeshellarg($_POST['v_quota']);
|
||||||
|
|
|
@ -36,6 +36,7 @@ $v_ftp_email = $panel[$user]['CONTACT'];
|
||||||
// Protect input
|
// Protect input
|
||||||
$v_domain = preg_replace("/^www./i", "", $_POST['v_domain']);
|
$v_domain = preg_replace("/^www./i", "", $_POST['v_domain']);
|
||||||
$v_domain = escapeshellarg($v_domain);
|
$v_domain = escapeshellarg($v_domain);
|
||||||
|
$v_domain = strtolower($v_domain);
|
||||||
$v_ip = escapeshellarg($_POST['v_ip']);
|
$v_ip = escapeshellarg($_POST['v_ip']);
|
||||||
if (empty($_POST['v_dns'])) $v_dns = 'off';
|
if (empty($_POST['v_dns'])) $v_dns = 'off';
|
||||||
if (empty($_POST['v_mail'])) $v_mail = 'off';
|
if (empty($_POST['v_mail'])) $v_mail = 'off';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue