diff options
author | ccesario <carloscesario@gmail.com> | 2012-07-01 19:49:41 -0300 |
---|---|---|
committer | ccesario <carloscesario@gmail.com> | 2012-07-01 19:49:41 -0300 |
commit | a38976951590aa988ee205d4b4bdfc71ea1b6a27 (patch) | |
tree | d12cf71684abc63056455f42602614644c94311c /usr/local/www/wizards/openvpn_wizard.inc | |
parent | cf1d5947413619f4e0165d500e77a4a6a5ecfcfd (diff) | |
download | pfsense-a38976951590aa988ee205d4b4bdfc71ea1b6a27.zip pfsense-a38976951590aa988ee205d4b4bdfc71ea1b6a27.tar.gz |
Change ereg() to preg_match() function
Diffstat (limited to 'usr/local/www/wizards/openvpn_wizard.inc')
-rw-r--r-- | usr/local/www/wizards/openvpn_wizard.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/wizards/openvpn_wizard.inc b/usr/local/www/wizards/openvpn_wizard.inc index 076bfc8..8f6fbc9 100644 --- a/usr/local/www/wizards/openvpn_wizard.inc +++ b/usr/local/www/wizards/openvpn_wizard.inc @@ -1,6 +1,6 @@ <?php /* - Copyright (C) 2010 Ermal Luçi + Copyright (C) 2010 Ermal Luçi All rights reserved. Redistribution and use in source and binary forms, with or without @@ -29,7 +29,7 @@ require_once("openvpn.inc"); function has_special_chars($text) { - return ereg('[^A-Za-z0-9 _-]', $text); + return preg_match('/[^A-Za-z0-9 _-]/', $text); } function step1_submitphpaction() { |