Skip to content

Commit ebfade2

Browse files
committed
Preg_match improvement. Fixed hestiacp#122
1 parent 6944201 commit ebfade2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/add/web/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
if ($_POST['v_proxy_ext'] != $v_proxy_ext) $v_adv = 'yes';
3232

3333
// Protect input
34-
$v_domain = preg_replace("/^www./i", "", $_POST['v_domain']);
34+
$v_domain = preg_replace("/^www\./i", "", $_POST['v_domain']);
3535
$v_domain = escapeshellarg($v_domain);
3636
$v_domain = strtolower($v_domain);
3737
$v_ip = escapeshellarg($_POST['v_ip']);

0 commit comments

Comments
 (0)