Permalink
Browse files

Preg_match improvement. Fixed #122

  • Loading branch information...
serghey-rodin committed Mar 11, 2014
1 parent 6944201 commit ebfade27bb9f81029c7963d8ae870e6753df26cb
Showing with 1 addition and 1 deletion.
  1. +1 −1 web/add/web/index.php
View
@@ -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']);

0 comments on commit ebfade2

Please sign in to comment.