aboutsummaryrefslogtreecommitdiffstats
path: root/config/lightsquid/lightsquid.inc
diff options
context:
space:
mode:
authorccesario <carloscesario@gmail.com>2012-06-18 22:08:59 -0300
committerccesario <carloscesario@gmail.com>2012-06-18 22:08:59 -0300
commita4531082e8d8dbcc98b97f1fd6fb030ab4b90f96 (patch)
treefdb3ccfad376a9a615f4ffcb03a963456256039e /config/lightsquid/lightsquid.inc
parent47c4f13d4da07cc259e307309cc146aa21c51350 (diff)
downloadpfsense-packages-a4531082e8d8dbcc98b97f1fd6fb030ab4b90f96.tar.gz
pfsense-packages-a4531082e8d8dbcc98b97f1fd6fb030ab4b90f96.tar.bz2
pfsense-packages-a4531082e8d8dbcc98b97f1fd6fb030ab4b90f96.zip
Change eregi() to preg_match() function
Diffstat (limited to 'config/lightsquid/lightsquid.inc')
-rw-r--r--config/lightsquid/lightsquid.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/config/lightsquid/lightsquid.inc b/config/lightsquid/lightsquid.inc
index 0b98cfe3..bddb0bb3 100644
--- a/config/lightsquid/lightsquid.inc
+++ b/config/lightsquid/lightsquid.inc
@@ -215,10 +215,10 @@ function lightsquid_resync() {
foreach ($lsconf_var as $key => $val) {
for($i = 0; $i < count($lsconf); $i++) {
$s = trim($lsconf[$i]);
- $e_key = "^[$]" . $key . "[ ]*[=]+";
-# update_log("Regular: eregi(\"$e_key," . "'$s')"); // debug regular template
- if (eregi($e_key, $s)) {
-# update_log("Regular PASSED: eregi(\"$e_key," . "'$s')"); // debug regular template
+ $e_key = "/^[$]" . $key . "[ ]*[=]+/i";
+# update_log("Regular: preg_match(\"$e_key," . "'$s')"); // debug regular template
+ if (preg_match($e_key, $s)) {
+# update_log("Regular PASSED: preg_match(\"$e_key," . "'$s')"); // debug regular template
$lsconf[$i] = '$' . "$key = $val;";
update_log("Update config: $key=$val");
}