Commit 07942c2e authored by Ad Schellevis's avatar Ad Schellevis

(legacy) regression, fix alias check in firewall_nat_1to1.php

parent d0a8dfea
...@@ -259,19 +259,19 @@ $main_buttons = array( ...@@ -259,19 +259,19 @@ $main_buttons = array(
</td> </td>
<td> <td>
<?=isset($natent['external']) ? $natent['external'] : "";?><?=isset($natent['source']) ? strstr(pprint_address($natent['source']), '/') : "";?> <?=isset($natent['external']) ? $natent['external'] : "";?><?=isset($natent['source']) ? strstr(pprint_address($natent['source']), '/') : "";?>
<?php if (is_alias(pprint_address($natent['external']))): ?> <?php if (isset($natent['external']['address']) && is_alias($natent['external']['address'])): ?>
&nbsp;<a href="/firewall_aliases_edit.php?name=<?=htmlspecialchars(pprint_address($natent['external']));?>"><i class="fa fa-list"></i> </a> &nbsp;<a href="/firewall_aliases_edit.php?name=<?=htmlspecialchars(pprint_address($natent['external']));?>"><i class="fa fa-list"></i> </a>
<?php endif; ?> <?php endif; ?>
</td> </td>
<td> <td>
<?=pprint_address($natent['source']);?> <?=pprint_address($natent['source']);?>
<?php if (is_alias(pprint_address($natent['source']))): ?> <?php if (isset($natent['source']['address']) && is_alias($natent['source']['address'])): ?>
&nbsp;<a href="/firewall_aliases_edit.php?name=<?=htmlspecialchars(pprint_address($natent['source']));?>"><i class="fa fa-list"></i> </a> &nbsp;<a href="/firewall_aliases_edit.php?name=<?=htmlspecialchars(pprint_address($natent['source']));?>"><i class="fa fa-list"></i> </a>
<?php endif; ?> <?php endif; ?>
</td> </td>
<td> <td>
<?=pprint_address($natent['destination']);?> <?=pprint_address($natent['destination']);?>
<?php if (is_alias(pprint_address($natent['destination']))): ?> <?php if (isset($natent['destination']['address']) && is_alias($natent['destination']['address'])): ?>
&nbsp;<a href="/firewall_aliases_edit.php?name=<?=htmlspecialchars(pprint_address($natent['destination']));?>"><i class="fa fa-list"></i> </a> &nbsp;<a href="/firewall_aliases_edit.php?name=<?=htmlspecialchars(pprint_address($natent['destination']));?>"><i class="fa fa-list"></i> </a>
<?php endif; ?> <?php endif; ?>
</td> </td>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment