summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_dhcp.php
diff options
context:
space:
mode:
authorErik Fonnesbeck <efonnes@gmail.com>2010-08-11 16:15:13 -0600
committerErik Fonnesbeck <efonnes@gmail.com>2010-08-11 16:15:13 -0600
commit3a3fb8eabaec1b4eb5ba86a124028916931a2011 (patch)
tree1e994ca47de2bb5dcb07b44af67e7fc576fd7268 /usr/local/www/services_dhcp.php
parente34f19ec25e50104c09f262bcda2e5346b675f36 (diff)
downloadpfsense-3a3fb8eabaec1b4eb5ba86a124028916931a2011.zip
pfsense-3a3fb8eabaec1b4eb5ba86a124028916931a2011.tar.gz
Fix printf/sprintf mixups.
Diffstat (limited to 'usr/local/www/services_dhcp.php')
-rwxr-xr-xusr/local/www/services_dhcp.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/services_dhcp.php b/usr/local/www/services_dhcp.php
index dd64b82..3a0502c 100755
--- a/usr/local/www/services_dhcp.php
+++ b/usr/local/www/services_dhcp.php
@@ -248,7 +248,7 @@ if ($_POST) {
foreach($config['virtualip']['vip'] as $vip) {
if($vip['interface'] == $if)
if($vip['subnet'] && is_inrange($vip['subnet'], $_POST['range_from'], $_POST['range_to']))
- $input_errors[] = printf(gettext("The subnet range cannot overlap with virtual IP address %s."),$vip['subnet']);
+ $input_errors[] = sprintf(gettext("The subnet range cannot overlap with virtual IP address %s."),$vip['subnet']);
}
}
@@ -274,7 +274,7 @@ if ($_POST) {
/* make sure that the DHCP Relay isn't enabled on this interface */
if (isset($config['dhcrelay'][$if]['enable']))
- $input_errors[] = printf(gettext("You must disable the DHCP relay on the %s interface before enabling the DHCP server."),$iflist[$if]);
+ $input_errors[] = sprintf(gettext("You must disable the DHCP relay on the %s interface before enabling the DHCP server."),$iflist[$if]);
}
}
OpenPOWER on IntegriCloud