Fix bridge checking missed in previous convert to multi interface capble CP. This is arguably needed since with new bridge the interface might be in full routing mode and be bridged just for SNAP port. Anyway people can run CP on top of the bridge interface itself anyway.

This commit is contained in:
Ermal Lui 2009-05-22 09:55:18 +00:00
parent b27f1caf39
commit 97edea16c2

View File

@ -100,8 +100,9 @@ if ($_POST) {
do_input_validation($_POST, $reqdfields, $reqdfieldsn, &$input_errors);
/* make sure no interfaces are bridged */
if (link_interface_to_bridge($pconfig['cinterface']))
$input_errors[] = "The captive portal cannot be used when one or more interfaces are bridged.";
foreach ($pconfig['cinterface'] as $cpbrif)
if (link_interface_to_bridge($cpbrif))
$input_errors[] = "The captive portal cannot be used on interface {$cpbrif} since it is part of a bridge.";
if ($_POST['httpslogin_enable']) {
if (!$_POST['cert'] || !$_POST['key']) {