diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-03-13 21:54:28 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-03-13 21:54:28 +0000 |
commit | 677e088005c02c4c810d97af68bc0eee25207d1a (patch) | |
tree | 60fa967907d767610bb7cf6b9203c3fc583e2b8b /etc | |
parent | a1f1ebb44a5fc2d0fff1149f831e0071ad7a3cc9 (diff) | |
download | pfsense-677e088005c02c4c810d97af68bc0eee25207d1a.zip pfsense-677e088005c02c4c810d97af68bc0eee25207d1a.tar.gz |
Use php_check_syntax on code before eval()
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/filter.inc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 3285011..67aa303 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -105,7 +105,7 @@ function filter_configure() { $maximumstates = $config['system']['maximumstates']; $rules.= "set limit states " . $maximumstates . "\n"; } - + $rules.= "\n"; $rules.= "scrub on {$wanif} reassemble tcp random-id " . $mssclamp ."\n"; // reassemble all directions $rules.= $altq_ints . "\n"; @@ -160,7 +160,8 @@ function filter_configure() { if($file <> "") { $text = return_filename_as_string("/usr/local/pkg/pf/" . $file); if($text != "") - eval($text); + if(php_check_syntax($toeval, $error_message) == false) + eval($text); } } } |