[3/3] proxy.cgi: Use sane check for subnet

Message ID 20210805132832.7645-3-michael.tremer@ipfire.org
State Accepted
Commit bc464ecd5ca243d6926d8c170971fcc1b4a69292
Headers
Series [1/3] No longer disable proxy when GREEN isn't present |

Commit Message

Michael Tremer Aug. 5, 2021, 1:28 p.m. UTC
  Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
---
 html/cgi-bin/proxy.cgi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

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 = $Lang::tr{'advproxy errmsg invalid ip or mask'}; }
+			unless (&Network::check_subnet($_)) { $errormessage = $Lang::tr{'advproxy errmsg invalid ip or mask'} . ": $_"; }
 			$proxysettings{'SRC_SUBNETS'} .= $_."\n";
 		}
 	}