opnsense-ports/security/base/files/patch-base_qry_common.php
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

16 lines
716 B
PHP

--- ./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.')';