mirror of
https://github.com/serghey-rodin/vesta.git
synced 2026-05-07 17:36:46 +02:00
Preg_match improvement. Fixed #122
This commit is contained in:
@@ -31,7 +31,7 @@ $v_ftp_email = $panel[$user]['CONTACT'];
|
||||
if ($_POST['v_proxy_ext'] != $v_proxy_ext) $v_adv = 'yes';
|
||||
|
||||
// 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 = strtolower($v_domain);
|
||||
$v_ip = escapeshellarg($_POST['v_ip']);
|
||||
|
||||
Reference in New Issue
Block a user