From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer To: development@lists.ipfire.org Subject: Re: [PATCH] BUG11466: fix routing.cgi the function call in routing.cgi was fixed to call the new "exact" function. Date: Tue, 14 Nov 2017 13:15:35 +0000 Message-ID: <1510665335.4838.416.camel@ipfire.org> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6244960949998330338==" List-Id: --===============6244960949998330338== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi, this is only a part of the fix. The function itself was broken and you will n= eed to apply that patch, too. It is: https://cgit.ipfire.org/ipfire-2.x.git/commit/?h=3Dnext&id=3D1047805dba564994= a96da0adbfb6559a8609ec11 On Tue, 2017-11-14 at 14:11 +0100, ummeegge wrote: > Hi Alex, > wanted to give you a fast feedback that this do not work here. I a get an > error message "This is the GREEN subnet" whereby it makes no difference whi= ch > subnet i do enter. The following line >=20 > $errormessage .=3D &General::check_net_internal_range($settings{'IP'}); This function does not do what we actually want here. It gets rid of the erro= r, but does not allow to enter a subnet of any of the BLUE, GREEN or ORANGE subnets. Best, -Michael >=20 > solves it currently. >=20 > Greetings, >=20 > Erik >=20 > Am 07.11.2017 um 15:10 schrieb Alexander Marx: >=20 > > --- > > html/cgi-bin/routing.cgi | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > >=20 > > diff --git a/html/cgi-bin/routing.cgi b/html/cgi-bin/routing.cgi > > index 15989bd..f2014e2 100644 > > --- a/html/cgi-bin/routing.cgi > > +++ b/html/cgi-bin/routing.cgi > > @@ -154,7 +154,7 @@ if ($settings{'ACTION'} eq $Lang::tr{'add'}) { > > last; > > } > > #Is the network part of an internal network? > > - $errormessage .=3D > > &General::check_net_internal($settings{'IP'}); > > + $errormessage .=3D > > &General::check_net_internal_exact($settings{'IP'}); > > last; > > } > >=20 > > --=20 > > 2.7.4 > >=20 >=20 >=20 --===============6244960949998330338== Content-Type: application/pgp-signature Content-Transfer-Encoding: base64 Content-Disposition: attachment; fil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