From: Michael Tremer Date: Wed, 3 Sep 2014 20:23:04 +0000 (+0200) Subject: general-functions.pl: Subroutine getnetworkip() accepted multiple arguments X-Git-Url: http://git.ipfire.org/?p=people%2Fteissler%2Fipfire-2.x.git;a=commitdiff_plain;h=9f64c06d941709052d2ae7405a3770b018a6e192 general-functions.pl: Subroutine getnetworkip() accepted multiple arguments --- diff --git a/config/cfgroot/general-functions.pl b/config/cfgroot/general-functions.pl index 8ed87fc80..7c88cfc68 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