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-core82~1^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9f64c06d941709052d2ae7405a3770b018a6e192;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