From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer To: development@lists.ipfire.org Subject: [PATCH 3/3] proxy.cgi: Use sane check for subnet Date: Thu, 05 Aug 2021 13:28:32 +0000 Message-ID: <20210805132832.7645-3-michael.tremer@ipfire.org> In-Reply-To: <20210805132832.7645-1-michael.tremer@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3360270427927636104==" List-Id: --===============3360270427927636104== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Signed-off-by: Michael Tremer --- html/cgi-bin/proxy.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/cgi-bin/proxy.cgi b/html/cgi-bin/proxy.cgi index b973a8ff7..966593e4d 100644 --- a/html/cgi-bin/proxy.cgi +++ b/html/cgi-bin/proxy.cgi @@ -2483,7 +2483,7 @@ sub check_acls s/^\s+//g; s/\s+$//g; if ($_) { - unless (&General::validipandmask($_)) { $errormessage =3D $Lang::tr{'advp= roxy errmsg invalid ip or mask'}; } + unless (&Network::check_subnet($_)) { $errormessage =3D $Lang::tr{'advpro= xy errmsg invalid ip or mask'} . ": $_"; } $proxysettings{'SRC_SUBNETS'} .=3D $_."\n"; } } --=20 2.20.1 --===============3360270427927636104==--