diff options
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() { |