Skip to content

Commit

Permalink
Preg_match improvement. Fixed #122
Browse files Browse the repository at this point in the history
  • Loading branch information
serghey-rodin committed Mar 11, 2014
1 parent 6944201 commit ebfade2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/add/web/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
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']);
Expand Down

0 comments on commit ebfade2

Please sign in to comment.