Project

General

Profile

« Previous | Next » 

Revision 0f907a68

Added by Darren Embry over 13 years ago

bug fix for #2320: on firewall_virtual_ip_edit.php it jumps to a length of 1 on a valid ipv4

View differences:

usr/local/www/firewall_virtual_ip_edit.php
453 453
                        <td><input name="subnet" type="text" class="formfld unknown ipv4v6" id="subnet" size="28" value="<?=htmlspecialchars($pconfig['subnet']);?>">
454 454
                          /<select name="subnet_bits" class="formselect ipv4v6" id="select">
455 455
                            <?php for ($i = 128; $i >= 1; $i--): ?>
456
                            <option value="<?=$i;?>" <?php if (($i == $pconfig['subnet_bits']) || (!isset($pconfig['subnet']) && $i == 32)) echo "selected"; ?>>
456
                            <option value="<?=$i;?>" <?php if ($i == $pconfig['subnet_bits']) echo "selected"; ?>>
457 457
                            <?=$i;?>
458 458
                      </option>
459 459
                            <?php endfor; ?>

Also available in: Unified diff