mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 05:44:08 -07:00
Fix "Parsing error" if a NAT IP is specified
https://bugs.vestacp.com/issues/325
This commit is contained in:
parent
e6d6e19032
commit
d7f4bc4a79
1 changed files with 4 additions and 8 deletions
|
@ -62,14 +62,10 @@
|
||||||
<td>
|
<td>
|
||||||
<select class="vst-list" name="v_ip">
|
<select class="vst-list" name="v_ip">
|
||||||
<?php
|
<?php
|
||||||
foreach ($ips as $key => $value) {
|
foreach ($ips as $ip => $value) {
|
||||||
$display_ip = $key;
|
$display_ip = htmlentities(empty($value['NAT']) ? $ip : "{$ip} → {$value['NAT']}");
|
||||||
if (!empty($value['NAT'])) $display_ip = $value['NAT'];
|
$ip_selected = (!empty($v_ip) && $ip == $_POST['v_ip']) ? 'selected' : '';
|
||||||
echo "\t\t\t\t<option value=\"".htmlentities($display_ip)."\"";
|
echo "\t\t\t\t<option value=\"{$ip}\" {$ip_selected}>{$display_ip}</option>\n";
|
||||||
if ((!empty($v_ip)) && ( $display_ip == $_POST['v_ip'])){
|
|
||||||
echo ' selected';
|
|
||||||
}
|
|
||||||
echo ">".htmlentities($display_ip)."</option>\n";
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</select>
|
</select>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue