summaryrefslogtreecommitdiff
path: root/security/base/files/patch-base_qry_common.php
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2010-05-09 11:22:35 +0000
committerMartin Wilke <miwi@FreeBSD.org>2010-05-09 11:22:35 +0000
commit821a625c0f1e984b303a3d9280ed040c701b3a34 (patch)
treebe704d414f53f2dbd0f7083a361bf7107085c437 /security/base/files/patch-base_qry_common.php
parent- Update to 1.9.2 (diff)
- Update to 1.4.5
PR: 145635 Submitted by: olli hauer <ohauer@gmx.de>
Diffstat (limited to 'security/base/files/patch-base_qry_common.php')
-rw-r--r--security/base/files/patch-base_qry_common.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/security/base/files/patch-base_qry_common.php b/security/base/files/patch-base_qry_common.php
new file mode 100644
index 000000000000..67197295ce57
--- /dev/null
+++ b/security/base/files/patch-base_qry_common.php
@@ -0,0 +1,16 @@
+--- ./base_qry_common.php.orig 2010-03-05 16:06:17.000000000 +0100
++++ ./base_qry_common.php 2010-04-11 23:52:13.000000000 +0200
+@@ -773,10 +773,10 @@
+ }
+ }
+ /* if have chosen the address type to be both source and destination */
+- if ( ereg("ip_both", $tmp) )
++ if ( preg_match("/ip_both/", $tmp) )
+ {
+- $tmp_src = ereg_replace("ip_both","ip_src",$tmp);
+- $tmp_dst = ereg_replace("ip_both","ip_dst",$tmp);
++ $tmp_src = preg_replace("/ip_both/","ip_src",$tmp);
++ $tmp_dst = preg_replace("/ip_both/","ip_dst",$tmp);
+
+ if ( $ip_addr[$i][2] == '=' )
+ $tmp = "(".$tmp_src.') OR ('.$tmp_dst.')';