From: Michael Tremer Date: Wed, 3 Sep 2014 20:23:04 +0000 (+0200) Subject: general-functions.pl: Subroutine getnetworkip() accepted multiple arguments X-Git-Tag: v2.15-core83~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a2a62cf25bc486c854715d06154b7e500396dd2;p=ipfire-2.x.git general-functions.pl: Subroutine getnetworkip() accepted multiple arguments --- diff --git a/config/cfgroot/general-functions.pl b/config/cfgroot/general-functions.pl index 8ed87fc80e..7c88cfc687 100644 --- a/config/cfgroot/general-functions.pl +++ b/config/cfgroot/general-functions.pl @@ -388,7 +388,9 @@ sub iporsubtocidr } sub getnetworkip { - return &Network::get_netaddress(shift); + my $arg = join("/", $@); + + return &Network::get_netaddress($arg); } sub getccdbc