summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorccesario <carloscesario@gmail.com>2012-07-01 19:49:41 -0300
committerccesario <carloscesario@gmail.com>2012-07-01 19:49:41 -0300
commita38976951590aa988ee205d4b4bdfc71ea1b6a27 (patch)
treed12cf71684abc63056455f42602614644c94311c
parentcf1d5947413619f4e0165d500e77a4a6a5ecfcfd (diff)
downloadpfsense-a38976951590aa988ee205d4b4bdfc71ea1b6a27.zip
pfsense-a38976951590aa988ee205d4b4bdfc71ea1b6a27.tar.gz
Change ereg() to preg_match() function
-rw-r--r--usr/local/www/wizards/openvpn_wizard.inc4
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() {
OpenPOWER on IntegriCloud