summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorccesario <carloscesario@gmail.com>2012-06-30 10:13:46 -0300
committerccesario <carloscesario@gmail.com>2012-06-30 10:13:46 -0300
commitaff670f655be6858acc84f977cd2e081a091b74b (patch)
treec4b8d9aa6371fd46a6b52fb4251024e45433ce37 /etc
parent41fe9ef0213cb8e10993ae70a73d40d857200e55 (diff)
downloadpfsense-aff670f655be6858acc84f977cd2e081a091b74b.zip
pfsense-aff670f655be6858acc84f977cd2e081a091b74b.tar.gz
Change ereg_replace to preg_replace() function
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/upgrade_config.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/upgrade_config.inc b/etc/inc/upgrade_config.inc
index b8bb978..bd12830 100644
--- a/etc/inc/upgrade_config.inc
+++ b/etc/inc/upgrade_config.inc
@@ -1907,7 +1907,7 @@ function upgrade_053_to_054() {
foreach($lbpool_arr as $lbpool) {
if($lbpool['type'] == "gateway") {
// Gateway Groups have to have valid names in pf, old lb pools did not. Clean them up.
- $group_name = ereg_replace("[^A-Za-z0-9]", "", $lbpool['name'] );
+ $group_name = preg_replace("/[^A-Za-z0-9]/", "", $lbpool['name'] );
// If we made and changes, check for collisions and note the change.
if ($group_name != $lbpool['name']) {
// Make sure the name isn't already in use.
OpenPOWER on IntegriCloud